Skip to content

Commit

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

Please sign in to comment.