From 3430519b310286c2922f68a9a7e5a9d7a00a9a25 Mon Sep 17 00:00:00 2001 From: Leo Kewitz Date: Fri, 6 Dec 2024 12:32:51 +0100 Subject: [PATCH] fix: uncaught conditional check --- components/expenses/PayoutMethodForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/expenses/PayoutMethodForm.js b/components/expenses/PayoutMethodForm.js index 309f86e7f5e..5d8fc28a6d3 100644 --- a/components/expenses/PayoutMethodForm.js +++ b/components/expenses/PayoutMethodForm.js @@ -62,7 +62,7 @@ export const validatePayoutMethod = payoutMethod => { } if (payoutMethod?.type !== PayoutMethodType.ACCOUNT_BALANCE) { - if (!payoutMethod.data?.currency) { + if (!payoutMethod?.data?.currency) { set(errors, 'data.currency', createError(ERROR.FORM_FIELD_REQUIRED)); } }