Skip to content

Commit

Permalink
Revert Amount validation for bank payment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolay-yankov committed Oct 20, 2024
1 parent f0c5dcc commit 8149d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/client/donation-flow/steps/Amount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const amountValidation = {
then: yup.string().required(),
}),
finalAmount: yup.number().when('payment', {
is: (payment: string | null) => ['card', 'bank', null].includes(payment),
is: (payment: string | null) => ['card', null].includes(payment),
then: () =>
yup.number().min(1, 'donation-flow:step.amount.field.final-amount.error').required(),
}),
Expand Down

0 comments on commit 8149d2a

Please sign in to comment.