From 8b0d28fecb0e38ac9c85e5e3e7edecc857773f51 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Sat, 30 Jul 2022 00:41:39 -0600 Subject: format --- src/routes/invoice/[amount].js | 6 +++--- src/routes/invoice/[amount].svelte | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/routes/invoice') diff --git a/src/routes/invoice/[amount].js b/src/routes/invoice/[amount].js index f75a1672..f9b31211 100644 --- a/src/routes/invoice/[amount].js +++ b/src/routes/invoice/[amount].js @@ -4,10 +4,10 @@ const username = 'bob', network = 'lightning'; export async function GET({ params }) { - let { amount } = params; - console.log("AMT", amount); + let { amount } = params; + console.log('AMT', amount); let { text } = await post('/lightning/invoice', { amount }); - console.log("TXT", text); + console.log('TXT', text); await post('/invoice', { invoice: { text, network }, user: { username } }); return { body: { amount, text } }; diff --git a/src/routes/invoice/[amount].svelte b/src/routes/invoice/[amount].svelte index dd6ed7fa..4c1ec199 100644 --- a/src/routes/invoice/[amount].svelte +++ b/src/routes/invoice/[amount].svelte @@ -6,7 +6,7 @@ import { onMount } from 'svelte'; export let text; - export let amount; + export let amount; let tipPercent = 0; const setRate = ($invoiceAmountFiat / $invoiceAmount) * 100000000; @@ -64,7 +64,7 @@ onMount(async () => { if (browser) { - let { default: QRCodeStyling } = await import('qr-code-styling'); + let { default: QRCodeStyling } = await import('qr-code-styling'); const qrCode = new QRCodeStyling({ width: window.screen.width < 640 ? 250 : 300, type: 'svg', -- cgit v1.2.3