aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-13 22:54:12 -0700
committerAdam Soltys <[email protected]>2022-09-13 22:54:14 -0700
commitcfdc6ed4a98e1eb60aba653d4403138a8fcaa4c2 (patch)
tree68265c61b26c90800cb3adc3574ef6829a09c75b
parent5411633670d040449acc1eb2add3f7af673f94db (diff)
downloadcoinos-ui-cfdc6ed4a98e1eb60aba653d4403138a8fcaa4c2.tar.gz
coinos-ui-cfdc6ed4a98e1eb60aba653d4403138a8fcaa4c2.zip
move tip declaration
-rw-r--r--src/routes/invoice/[id]/+page.svelte5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte
index 352ac719..df25c359 100644
--- a/src/routes/invoice/[id]/+page.svelte
+++ b/src/routes/invoice/[id]/+page.svelte
@@ -23,8 +23,7 @@
let image = '/images/invoice.svg';
let qr;
-
- amount -= tip;
+ let tipPercent = 0;
let refresh = (data) => {
({ invoice, id } = data);
@@ -48,8 +47,6 @@
$: amountFiat = parseFloat(((amount * rate) / 100000000).toFixed(2));
- let tipPercent = 0;
-
$: tipAmount = ((tip * rate) / 100000000).toFixed(2);
$: tipAmountFormatted = new Intl.NumberFormat('en-US', {