aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-05-18 08:17:59 -0700
committerAdam Soltys <[email protected]>2025-05-18 08:17:59 -0700
commitd185ec98246a7d2b6cd5953b93cf061f7710d192 (patch)
tree059061a0236c6d4206551a576eed4ef02a774751 /src/components
parent63423dcf683bc27c0cc0977c13efc2c500f1d79a (diff)
downloadcoinos-ui-d185ec98246a7d2b6cd5953b93cf061f7710d192.tar.gz
coinos-ui-d185ec98246a7d2b6cd5953b93cf061f7710d192.zip
max
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 4f3350dd..dfa5f616 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={Math.min(balance - (id === user.id ? (locked || 0) : 0), 0)}
+ amount={Math.max(balance - (id === user.id ? (locked || 0) : 0), 0)}
{rate}
{currency}
{locale}