diff options
| author | Adam Soltys <[email protected]> | 2022-11-05 13:03:47 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-05 13:03:47 -0700 |
| commit | 5bd8de0b2b0866c1229bb746d0a5a0cdd7a6b519 (patch) | |
| tree | 23d8cf46f3e60429681ec3291b51822a575613bf /src/components | |
| parent | 119ac865b9ea25f54e30baa03325331604535956 (diff) | |
| download | coinos-ui-5bd8de0b2b0866c1229bb746d0a5a0cdd7a6b519.tar.gz coinos-ui-5bd8de0b2b0866c1229bb746d0a5a0cdd7a6b519.zip | |
handle bip21 qr codes
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Numpad.svelte | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/Numpad.svelte b/src/components/Numpad.svelte index 36fe9f67..4f7026a9 100644 --- a/src/components/Numpad.svelte +++ b/src/components/Numpad.svelte @@ -5,11 +5,12 @@ import { t } from '$lib/translations'; export let amount, - amountFiat = 0, currency, - fiat = true; + fiat = !amount; - let amountSats = 0; + export let amountFiat = amount * ($selectedRate / sats); + + let amountSats = amount; let loading = false; let symbol = |
