diff options
| author | Adam Soltys <[email protected]> | 2022-11-09 11:23:52 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-09 11:23:52 -0800 |
| commit | 6cd848815e832b474224c17afd547d156a672706 (patch) | |
| tree | f075e736d86066ea1e7fb415d2a675df8a1f1261 /src | |
| parent | 49a51e011e2fd8d23cdb455b7a8de757c1f40672 (diff) | |
| download | coinos-ui-6cd848815e832b474224c17afd547d156a672706.tar.gz coinos-ui-6cd848815e832b474224c17afd547d156a672706.zip | |
short form sats on numpad
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Numpad.svelte | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/Numpad.svelte b/src/components/Numpad.svelte index 55ce96d4..4f546499 100644 --- a/src/components/Numpad.svelte +++ b/src/components/Numpad.svelte @@ -1,7 +1,7 @@ <script> import { Left, Icon } from '$comp'; import { selectedRate } from '$lib/store'; - import { f, s, post, warning, sats } from '$lib/utils'; + import { f, s, post, warning, sat, sats } from '$lib/utils'; import { t } from '$lib/translations'; export let amount, @@ -36,7 +36,7 @@ $: amountFiatConverted = f(amountSats * ($selectedRate / sats), currency); - $: amountSatsConverted = s(amountFiat / ($selectedRate / sats)); + $: amountSatsConverted = sat(amountFiat / ($selectedRate / sats)); const numPad = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '.', '0', '<']; @@ -94,7 +94,7 @@ {fiat ? `${symbol}${amountFiat}` : '⚡️' + amountSatsFormatted} </div> <span class="text-secondary mr-1" - >{fiat ? `⚡️${amountSatsConverted}` : amountFiatConverted}</span + >{fiat ? amountSatsConverted : amountFiatConverted}</span > <button type="button" |
