diff options
| author | Adam Soltys <[email protected]> | 2022-09-13 22:54:12 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-13 22:54:14 -0700 |
| commit | 328b987ca0b5bc3fadd4c43266775aece93e1df2 (patch) | |
| tree | fc7ad00aa4981872fb7f7c9422e0b598e1659b14 /src | |
| parent | 66828eed32269452988919d08e589da147ed9c31 (diff) | |
| download | coinos-ui-328b987ca0b5bc3fadd4c43266775aece93e1df2.tar.gz coinos-ui-328b987ca0b5bc3fadd4c43266775aece93e1df2.zip | |
move tip declaration
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 5 |
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', { |
