From c17cf8d8c7a8ed252aa6895f03dae15a3fcd0c12 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Thu, 15 Sep 2022 18:11:12 -0600 Subject: format --- src/routes/invoice/[id]/+page.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/routes/invoice') diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 978e2b9a..35bd06bb 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -52,9 +52,7 @@ $: tipAmountSats = s(tip); - $: totalAmountSats = s( - amount + parseFloat(tipAmountSats.replace(/,/g, '')) - ); + $: totalAmountSats = s(amount + parseFloat(tipAmountSats.replace(/,/g, ''))); let apply = async () => { tipPercent = (customTipAmount / amountFiat) * 100; -- cgit v1.2.3