From 641ec2105f9de31116c0c2f041e5f9cf9dbfdee8 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Tue, 13 Sep 2022 21:56:53 -0600 Subject: add translations notes --- src/routes/[username]/receive/+page.svelte | 4 +--- src/routes/invoice/[id]/+page.svelte | 6 +++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/routes/[username]/receive/+page.svelte b/src/routes/[username]/receive/+page.svelte index dd7b3d25..f83fc953 100644 --- a/src/routes/[username]/receive/+page.svelte +++ b/src/routes/[username]/receive/+page.svelte @@ -13,9 +13,7 @@ $: amount = parseInt(useFiat ? Math.round(amountFiat / ($selectedRate / 100000000)) : amountSats); - $: $invoiceAmount = parseInt( - !amountSats ? amountFiat / ($selectedRate / 100000000) : amountSats - ); + $: $invoiceAmount = parseInt(!amountSats ? amountFiat / ($selectedRate / 100000000) : amountSats); $: $invoiceAmountFiat = parseInt( amountFiat === 0 ? amountSats * ($selectedRate / 100000000) : amountFiat diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 56511d15..aba892e6 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -62,7 +62,6 @@ amount + parseFloat(tipAmountSats.replace(/,/g, '')) ); - let apply = async () => { tipPercent = (customTipAmount / amountFiat) * 100; update(); @@ -235,6 +234,7 @@ disabled={showMobileTip ? !customTipAmount && !tipAmount : !customTipAmount} on:click={apply}>Apply + @@ -272,6 +272,7 @@ {$t('invoice.addTip')} + Scan to pay {username} @@ -291,6 +292,7 @@
+ Invoice {invoiceAmountFiatFormatted} @@ -299,6 +301,7 @@
+ Tip {tipAmountFormatted} @@ -307,6 +310,7 @@
+ Total {totalAmountFormatted} -- cgit v1.2.3