From dd43d979249bff0b06044ad856e34fb9a1367b70 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Wed, 8 Oct 2025 20:00:20 +0300 Subject: [PATCH] fix(client): update 25 tier ab test (#62553) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- client/src/components/Donation/multi-tier-donation-form.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/components/Donation/multi-tier-donation-form.tsx b/client/src/components/Donation/multi-tier-donation-form.tsx index b6c1649f026..82a82668b6e 100644 --- a/client/src/components/Donation/multi-tier-donation-form.tsx +++ b/client/src/components/Donation/multi-tier-donation-form.tsx @@ -83,7 +83,7 @@ function SelectionTabs({ @@ -182,6 +182,10 @@ const MultiTierDonationForm: React.FC = ({ const [showDonateForm, setShowDonateForm] = useState(false); + useEffect(() => { + setDonationAmount(replace20With25 ? defaultTierAmountB : defaultTierAmount); + }, [replace20With25]); + useEffect(() => { if (setShowHeaderAndFooter) setShowHeaderAndFooter(!showDonateForm); }, [showDonateForm, setShowHeaderAndFooter]);