Skip to content

Commit

Permalink
Revert "Do not disable the Amount form for Bank transaction"
Browse files Browse the repository at this point in the history
This reverts commit 2ceeef5.
  • Loading branch information
nik-yankov committed Oct 20, 2024
1 parent 3d7b84e commit e962d4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/client/donation-flow/DonationFlowForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ export function DonationFlowForm() {
</Button>
<Grid2 container size={{ xs: 12, md: 7 }} direction={'column'}>
<StepSplitter content="1" active={Boolean(values.amountChosen)} />
<Amount error={Boolean(errors.finalAmount) && Boolean(submitCount > 0)} />
<Amount
disabled={values.payment === DonationFormPaymentMethod.BANK}
error={Boolean(errors.finalAmount) && Boolean(submitCount > 0)}
/>
</Grid2>
<Grid2 container size={{ xs: 12, md: 7 }} gap={2} direction={'column'}>
<StepSplitter content="2" active={Boolean(values.mode)} />
Expand Down

0 comments on commit e962d4e

Please sign in to comment.