Skip to content

Commit

Permalink
requiredWithout doesn't expect an array
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Nov 4, 2024
1 parent d6caee5 commit 0416ebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallets/blink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const fields = [
.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.`,
optional: 'for sending',
requiredWithout: ['apiKeyRecv']
requiredWithout: 'apiKeyRecv'
},
{
name: 'currency',
Expand All @@ -40,7 +40,7 @@ export const fields = [
placeholder: 'blink_...',
optional: 'for receiving',
serverOnly: true,
requiredWithout: ['apiKey'],
requiredWithout: 'apiKey',
validate: string()
.matches(/^blink_[A-Za-z0-9]+$/, { message: 'must match pattern blink_A-Za-z0-9' })
},
Expand Down

0 comments on commit 0416ebb

Please sign in to comment.