diff options
| author | Adam Soltys <[email protected]> | 2022-11-05 13:05:15 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-05 13:05:15 -0700 |
| commit | efc7e8681ef7bc64626eff592e967fec5d6a6d5f (patch) | |
| tree | f0f6e8f3d4ba40f2bf92477961b8aa3fc5268acb | |
| parent | 5bd8de0b2b0866c1229bb746d0a5a0cdd7a6b519 (diff) | |
| download | coinos-ui-efc7e8681ef7bc64626eff592e967fec5d6a6d5f.tar.gz coinos-ui-efc7e8681ef7bc64626eff592e967fec5d6a6d5f.zip | |
fix numpad initialization
| -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 4f7026a9..b4f2bbbb 100644 --- a/src/components/Numpad.svelte +++ b/src/components/Numpad.svelte @@ -8,7 +8,7 @@ currency, fiat = !amount; - export let amountFiat = amount * ($selectedRate / sats); + export let amountFiat = amount ? amount * ($selectedRate / sats) : 0; let amountSats = amount; let loading = false; |
