diff options
| author | Adam Soltys <[email protected]> | 2024-09-04 18:59:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-04 19:32:52 -0700 |
| commit | e2996ef8d1d3628731e340481d01a5ef07e2abd1 (patch) | |
| tree | f5c171f23afeb63166db73f3cf8db30515ad54fa /src/components/Balance.svelte | |
| parent | accddd02f0b77a697edfee1d3f9beaeecbad9458 (diff) | |
| download | coinos-ui-e2996ef8d1d3628731e340481d01a5ef07e2abd1.tar.gz coinos-ui-e2996ef8d1d3628731e340481d01a5ef07e2abd1.zip | |
wip
Diffstat (limited to 'src/components/Balance.svelte')
| -rw-r--r-- | src/components/Balance.svelte | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte index 4d5ac6bd..51c56555 100644 --- a/src/components/Balance.svelte +++ b/src/components/Balance.svelte @@ -6,7 +6,7 @@ import { t } from "$lib/translations"; let show; - export let user, rate; + export let user, rate, balance; </script> {#if show && user.haspin && $pin?.length !== 6} @@ -27,12 +27,12 @@ {#if isNaN(rate)} <div class="text-gray-200">—</div> {:else} - {f((user.balance * rate) / sats, user.currency)} + {f((balance * rate) / sats, user.currency)} {/if} </div> <div class="text-secondary text-2xl"> - ⚡️{s(user.balance)} + ⚡️{s(balance)} </div> {/if} </div> |
