diff options
Diffstat (limited to 'src/routes/invoice')
| -rw-r--r-- | src/routes/invoice/[id]/+page.svelte | 4 |
1 files changed, 1 insertions, 3 deletions
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; |
