Skip to content

Commit

Permalink
small refactor to make Other Amount field non-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
GHaberis committed Jan 13, 2025
1 parent 9559209 commit d3ab141
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support-frontend/assets/components/priceCards/priceCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export type PriceCardsProps = {
currency: IsoCurrency;
onAmountChange: (newAmount: string) => void;
paymentInterval?: PriceCardPaymentInterval;
otherAmountField?: React.ReactNode;
otherAmountField: React.ReactNode;
hideChooseYourAmount?: boolean;
};

Expand Down Expand Up @@ -123,7 +123,7 @@ export function PriceCards({
)}
</>
</ChoiceCardGroup>
{(!hideChooseYourAmount || !amounts.length) && otherAmountField}
{enableChooseYourAmountButton && otherAmountField}
</div>
);
}

0 comments on commit d3ab141

Please sign in to comment.