aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-05-18 08:16:49 -0700
committerAdam Soltys <[email protected]>2025-05-18 08:16:49 -0700
commit63423dcf683bc27c0cc0977c13efc2c500f1d79a (patch)
treea3a1a637fc42ea23a439e30554974aa4784a4409 /src/components
parentd3c7ed7079532c3a5efcc8258fcaf9a9d4f19e57 (diff)
downloadcoinos-ui-63423dcf683bc27c0cc0977c13efc2c500f1d79a.tar.gz
coinos-ui-63423dcf683bc27c0cc0977c13efc2c500f1d79a.zip
hide 0 balances
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Balance.svelte2
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}