mirror of https://github.com/VERT-sh/VERT.git
fix: visual stuff with monetary values
This commit is contained in:
parent
116c5ade6d
commit
a2060baba2
|
@ -100,7 +100,7 @@
|
||||||
if (submitResult.error) {
|
if (submitResult.error) {
|
||||||
addToast(
|
addToast(
|
||||||
"error",
|
"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;
|
enablePay = true;
|
||||||
return;
|
return;
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
addToast(
|
addToast(
|
||||||
"error",
|
"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 {
|
} else {
|
||||||
addToast("success", "Thank you for your donation!");
|
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"
|
class="btn w-full h-12 bg-accent-red text-black rounded-full mt-4"
|
||||||
onclick={donate}
|
onclick={donate}
|
||||||
>
|
>
|
||||||
Donate ${amount} USD
|
Donate ${amount.toFixed(2)} USD
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue