aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-11-09 11:23:52 -0800
committerAdam Soltys <[email protected]>2022-11-09 11:23:52 -0800
commit6cd848815e832b474224c17afd547d156a672706 (patch)
treef075e736d86066ea1e7fb415d2a675df8a1f1261 /src/components
parent49a51e011e2fd8d23cdb455b7a8de757c1f40672 (diff)
downloadcoinos-ui-6cd848815e832b474224c17afd547d156a672706.tar.gz
coinos-ui-6cd848815e832b474224c17afd547d156a672706.zip
short form sats on numpad
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Numpad.svelte6
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"