diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 23:23:32 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 23:23:32 -0800 |
| commit | 13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121 (patch) | |
| tree | 076cd631b671ff5ab74dee08c775c20c192ac659 /src/routes/(app)/payments | |
| parent | 2e61e8abbc318c36969cb5add0c63df81135b4ab (diff) | |
| download | coinos-ui-13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121.tar.gz coinos-ui-13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121.zip | |
fix svelte errors
Diffstat (limited to 'src/routes/(app)/payments')
| -rw-r--r-- | src/routes/(app)/payments/[...page]/+page.svelte | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/routes/(app)/payments/[...page]/+page.svelte b/src/routes/(app)/payments/[...page]/+page.svelte index 4d20f8ef..bc207aad 100644 --- a/src/routes/(app)/payments/[...page]/+page.svelte +++ b/src/routes/(app)/payments/[...page]/+page.svelte @@ -111,8 +111,8 @@ let filename = "payments.csv"; let blob = new Blob([csv], { type: "text/csv;charset=utf-8;" }); - if (navigator.msSaveBlob) { - navigator.msSaveBlob(blob, filename); + if ((navigator as any).msSaveBlob) { + (navigator as any).msSaveBlob(blob, filename); } else { let link = document.createElement("a"); if (link.download !== undefined) { @@ -183,6 +183,14 @@ <div class="grid grid-cols-3 w-full text-center text-lg"> {#each Object.keys(incoming) as c} + {@const totalIn = incoming[c]?.fiat || 0} + {@const tipsIn = incoming[c]?.fiatTips || 0} + {@const subtotalIn = totalIn - tipsIn} + + {@const totalOut = -outgoing[c]?.fiat || 0} + {@const tipsOut = outgoing[c]?.fiatTips || 0} + {@const subtotalOut = totalOut - tipsOut} + <span class="text-base text-secondary text-left"></span> <!-- <span class="text-base text-secondary" --> <!-- >{$t("payments.subtotal")}</span --> @@ -192,14 +200,6 @@ </span> <span class="text-base text-secondary text-right">{$t("payments.total")}</span> - {@const totalIn = incoming[c]?.fiat || 0} - {@const tipsIn = incoming[c]?.fiatTips || 0} - {@const subtotalIn = totalIn - tipsIn} - - {@const totalOut = -outgoing[c]?.fiat || 0} - {@const tipsOut = outgoing[c]?.fiatTips || 0} - {@const subtotalOut = totalOut - tipsOut} - {#if totalIn > 0} <span class="text-left text-base text-secondary">{$t("payments.income")}</span> <!-- <span><b>{subtotalIn ? f(subtotalIn, c) : "-"}</b></span> --> |
