aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-17 00:20:01 -0800
committerAdam Soltys <[email protected]>2024-11-17 00:20:01 -0800
commit4733c531f0b0cf6c12a0fb953f9dd0352d714e1a (patch)
tree152e5309f3dc8992cc906a172e28f7357fc36eb7 /src/components
parent31aba71c117e49166c1a4b78421fe6607c894b80 (diff)
downloadcoinos-ui-4733c531f0b0cf6c12a0fb953f9dd0352d714e1a.tar.gz
coinos-ui-4733c531f0b0cf6c12a0fb953f9dd0352d714e1a.zip
handle blank offers
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Numpad.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Numpad.svelte b/src/components/Numpad.svelte
index bbafc196..990fc025 100644
--- a/src/components/Numpad.svelte
+++ b/src/components/Numpad.svelte
@@ -19,7 +19,7 @@
$: update(amount, amountFiat);
let update = (a, f) => {
if ($fiat) {
- amount = Math.round(f / (rate / sats));
+ amount = f ? Math.round(f / (rate / sats)) : 0;
} else {
amountFiat = ((a * rate) / sats).toFixed(2);
}