diff options
| author | Adam Soltys <[email protected]> | 2024-11-29 23:32:08 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-29 23:32:08 -0800 |
| commit | 42cc753e86a3b7c5020206dda68bbb81bf15da2b (patch) | |
| tree | 9af9534cf6d40a9a8ea1888436432db100cb6ab0 /src/components | |
| parent | 68bb0a2ec6ec407e42e4c82d0be00cf13db21c94 (diff) | |
| download | coinos-ui-42cc753e86a3b7c5020206dda68bbb81bf15da2b.tar.gz coinos-ui-42cc753e86a3b7c5020206dda68bbb81bf15da2b.zip | |
load more contacts
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Amount.svelte | 2 | ||||
| -rw-r--r-- | src/components/Balance.svelte | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/components/Amount.svelte b/src/components/Amount.svelte index b2e7cd3a..0fd29755 100644 --- a/src/components/Amount.svelte +++ b/src/components/Amount.svelte @@ -4,7 +4,7 @@ const { align, amount, locale, tip, rate, currency } = $props(); </script> -{#if amount} +{#if typeof amount !== "undefined"} <div> <h2 class="text-2xl md:text-3xl font-semibold flex items-end cursor-copy" diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte index a80664dc..fd5ff3db 100644 --- a/src/components/Balance.svelte +++ b/src/components/Balance.svelte @@ -26,8 +26,9 @@ <iconify-icon icon="ph:eye-slash-bold" width="32"></iconify-icon> <div class="my-auto">{$t("user.showBalance")}</div> </button> - {:else} - + {:else if !isNaN(rate)} <Amount amount={balance} {rate} {currency} {locale} align="left" /> + {:else} + <div class="text-gray-200">—</div> {/if} </div> |
