From cfdc6ed4a98e1eb60aba653d4403138a8fcaa4c2 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 13 Sep 2022 22:54:12 -0700 Subject: move tip declaration --- src/routes/invoice/[id]/+page.svelte | 5 +---- 1 file changed, 1 insertion(+), 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', { -- cgit v1.2.3