diff options
| author | Adam Soltys <[email protected]> | 2023-12-03 12:40:41 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-03 12:42:48 -0800 |
| commit | 092add79f39fb8348b5ac05abeaa74bed0557408 (patch) | |
| tree | a7b926d2abf77429c18ce4cc1574afab5b428379 /src/components/Balance.svelte | |
| parent | 68a05c1beac9355ce0a235a6835d3b991b193d9e (diff) | |
| download | coinos-ui-092add79f39fb8348b5ac05abeaa74bed0557408.tar.gz coinos-ui-092add79f39fb8348b5ac05abeaa74bed0557408.zip | |
remove balance animation
Diffstat (limited to 'src/components/Balance.svelte')
| -rw-r--r-- | src/components/Balance.svelte | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte index fc986b1f..cf926b44 100644 --- a/src/components/Balance.svelte +++ b/src/components/Balance.svelte @@ -1,11 +1,11 @@ <script> import Pin from "$comp/Pin.svelte"; import { f, s, sat, sats } from "$lib/utils"; - import { animatedRate, pin } from "$lib/store"; + import { pin } from "$lib/store"; import { t } from "$lib/translations"; let show; - export let user; + export let user, rate; </script> {#if show && user.haspin && $pin?.length !== 6} @@ -20,10 +20,10 @@ > {:else} <div class="text-5xl font-bold tabular-nums"> - {#if isNaN($animatedRate)} + {#if isNaN(rate)} <div class="text-gray-200">—</div> {:else} - {f((user.balance * $animatedRate) / sats, user.currency)} + {f((user.balance * rate) / sats, user.currency)} {/if} </div> |
