format donation total
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Philipp Dormann 2023-04-15 20:34:29 +02:00
parent b287db4d0a
commit 431fc5a047
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314
1 changed files with 6 additions and 1 deletions

View File

@ -168,7 +168,12 @@
</div>
<div class="my-1 px-1 w-full overflow-hidden sm:w-1/2 md:w-1/3">
<h1 class="text-5xl font-semibold text-center text-gray-900">
{general.total_donation || "0"}
{parseFloat(
((general.total_donation || 0) / 100).toFixed(2)
).toLocaleString(undefined, {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
}) || "0"} €
</h1>
<h1 class="text-2xl font-semibold text-center text-gray-900">
{$_("spendensumme")}