diff options
| author | Adam Soltys <[email protected]> | 2024-11-17 00:34:40 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-17 00:34:40 -0800 |
| commit | 023a54152cb88a2bb47602a287e3ad8624bca75a (patch) | |
| tree | 7ba28779fedec57fb03e24483060a6726174c787 | |
| parent | ac8bfb374751f9afd1935b8593f37c640bc61789 (diff) | |
| download | coinos-ui-023a54152cb88a2bb47602a287e3ad8624bca75a.tar.gz coinos-ui-023a54152cb88a2bb47602a287e3ad8624bca75a.zip | |
check for zero
| -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 990fc025..7cda6a4f 100644 --- a/src/components/Numpad.svelte +++ b/src/components/Numpad.svelte @@ -21,7 +21,7 @@ if ($fiat) { amount = f ? Math.round(f / (rate / sats)) : 0; } else { - amountFiat = ((a * rate) / sats).toFixed(2); + amountFiat = a ? ((a * rate) / sats).toFixed(2) : 0; } }; |
