Merge pull request #1537 from riccardobl/rqwt
requiredWithout doesn't expect an array
This commit is contained in:
commit
8ab44e19fd
|
@ -16,7 +16,7 @@ export const fields = [
|
||||||
.matches(/^blink_[A-Za-z0-9]+$/, { message: 'must match pattern blink_A-Za-z0-9' }),
|
.matches(/^blink_[A-Za-z0-9]+$/, { message: 'must match pattern blink_A-Za-z0-9' }),
|
||||||
help: `you can get an API key from [Blink Dashboard](${galoyBlinkDashboardUrl}).\nPlease make sure to select ONLY the 'Read' and 'Write' scopes when generating this API key.`,
|
help: `you can get an API key from [Blink Dashboard](${galoyBlinkDashboardUrl}).\nPlease make sure to select ONLY the 'Read' and 'Write' scopes when generating this API key.`,
|
||||||
optional: 'for sending',
|
optional: 'for sending',
|
||||||
requiredWithout: ['apiKeyRecv']
|
requiredWithout: 'apiKeyRecv'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'currency',
|
name: 'currency',
|
||||||
|
@ -40,7 +40,7 @@ export const fields = [
|
||||||
placeholder: 'blink_...',
|
placeholder: 'blink_...',
|
||||||
optional: 'for receiving',
|
optional: 'for receiving',
|
||||||
serverOnly: true,
|
serverOnly: true,
|
||||||
requiredWithout: ['apiKey'],
|
requiredWithout: 'apiKey',
|
||||||
validate: string()
|
validate: string()
|
||||||
.matches(/^blink_[A-Za-z0-9]+$/, { message: 'must match pattern blink_A-Za-z0-9' })
|
.matches(/^blink_[A-Za-z0-9]+$/, { message: 'must match pattern blink_A-Za-z0-9' })
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue