fix: visual stuff with monetary values

This commit is contained in:
not-nullptr 2025-06-26 01:40:02 +01:00
parent 116c5ade6d
commit a2060baba2
1 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@
if (submitResult.error) {
addToast(
"error",
`Payment failed: ${submitResult.error.message}. You have not been charged.`,
`Payment failed: ${submitResult.error.message}${submitResult.error.message?.endsWith(".") ? "" : "."} You have not been charged.`,
);
enablePay = true;
return;
@ -118,7 +118,7 @@
if (res.error) {
addToast(
"error",
`Payment failed: ${res.error.message}. You have not been charged.`,
`Payment failed: ${res.error.message}${res.error.message?.endsWith(".") ? "" : "."} You have not been charged.`,
);
} else {
addToast("success", "Thank you for your donation!");
@ -287,7 +287,7 @@
class="btn w-full h-12 bg-accent-red text-black rounded-full mt-4"
onclick={donate}
>
Donate ${amount} USD
Donate ${amount.toFixed(2)} USD
</button>
</div>
</div>