From 0416ebbdd8c218343198010b8dffb377a4cb9a2e Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Mon, 4 Nov 2024 22:18:43 +0100 Subject: [PATCH] requiredWithout doesn't expect an array --- wallets/blink/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallets/blink/index.js b/wallets/blink/index.js index c5ed4934..7975c9d4 100644 --- a/wallets/blink/index.js +++ b/wallets/blink/index.js @@ -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', @@ -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' }) },