From 6e523f300a88efd0050066b355f7eddf24bf4f5b Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Mon, 9 Sep 2024 13:00:06 +0000 Subject: [PATCH] web/donate: update sendCustom handler to use links --- web/src/components/donate/DonateOptionsCard.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/donate/DonateOptionsCard.svelte b/web/src/components/donate/DonateOptionsCard.svelte index e3842f90..66bfe021 100644 --- a/web/src/components/donate/DonateOptionsCard.svelte +++ b/web/src/components/donate/DonateOptionsCard.svelte @@ -65,8 +65,8 @@ return; } - const amount = Number(customInputValue) * 100; - return donationMethods[processor](amount); + const amount = Math.floor(Number(customInputValue) * 100); + return window.open(donationMethods[processor](amount), '_blank'); };