From a25e0bfb043314dc6d74245eafc084645e0dff3e Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 6 Aug 2024 16:48:39 +0600 Subject: [PATCH] web/DonateOptionsCard: fix prefilled stripe amount --- web/src/components/donate/DonateOptionsCard.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/donate/DonateOptionsCard.svelte b/web/src/components/donate/DonateOptionsCard.svelte index 5787b541..1c3653f5 100644 --- a/web/src/components/donate/DonateOptionsCard.svelte +++ b/web/src/components/donate/DonateOptionsCard.svelte @@ -15,7 +15,7 @@ const donateStripe = (amount: number) => { const url = new URL(donate.stripe); - url.searchParams.set("__prefilled_amount", amount.toString()); + url.searchParams.set("__prefilled_amount", (amount * 100).toString()); window.open(url, "_blank"); };