diff options
| author | Adam Soltys <[email protected]> | 2024-11-17 00:20:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-17 00:20:01 -0800 |
| commit | 71d5d95f1b6f5dcb4a1d66e234a889c30fa02e3f (patch) | |
| tree | 152e5309f3dc8992cc906a172e28f7357fc36eb7 /src/components | |
| parent | dfd9cc38f013239f681a369eaf9396c6e16ceef0 (diff) | |
| download | coinos-ui-71d5d95f1b6f5dcb4a1d66e234a889c30fa02e3f.tar.gz coinos-ui-71d5d95f1b6f5dcb4a1d66e234a889c30fa02e3f.zip | |
handle blank offers
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Numpad.svelte | 2 |
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); } |
