Skip to content

Commit

Permalink
fix: uncaught conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
kewitz committed Dec 6, 2024
1 parent 6e27341 commit 3430519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/expenses/PayoutMethodForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 3430519

Please sign in to comment.