Skip to content

best way to save what you love

web/donate: update sendCustom handler to use links

dumbmoron6e523f300a88
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');
};
</script>