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
commit71d5d95f1b6f5dcb4a1d66e234a889c30fa02e3f (patch)
tree152e5309f3dc8992cc906a172e28f7357fc36eb7 /src/components
parentdfd9cc38f013239f681a369eaf9396c6e16ceef0 (diff)
downloadcoinos-ui-71d5d95f1b6f5dcb4a1d66e234a889c30fa02e3f.tar.gz
coinos-ui-71d5d95f1b6f5dcb4a1d66e234a889c30fa02e3f.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);
}