diff options
| author | Adam Soltys <[email protected]> | 2025-05-18 08:16:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-05-18 08:16:49 -0700 |
| commit | 63423dcf683bc27c0cc0977c13efc2c500f1d79a (patch) | |
| tree | a3a1a637fc42ea23a439e30554974aa4784a4409 | |
| parent | d3c7ed7079532c3a5efcc8258fcaf9a9d4f19e57 (diff) | |
| download | coinos-ui-63423dcf683bc27c0cc0977c13efc2c500f1d79a.tar.gz coinos-ui-63423dcf683bc27c0cc0977c13efc2c500f1d79a.zip | |
hide 0 balances
| -rw-r--r-- | src/components/Balance.svelte | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte index 325613e1..4f3350dd 100644 --- a/src/components/Balance.svelte +++ b/src/components/Balance.svelte @@ -30,7 +30,7 @@ {:else if !isNaN(rate)} <div class="flex gap-4"> <Amount - amount={balance - (id === user.id ? (locked || 0) : 0)} + amount={Math.min(balance - (id === user.id ? (locked || 0) : 0), 0)} {rate} {currency} {locale} |
