From 4aa1ad89a0e2d489bc6b85ab3291719e080757ad Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 25 Jul 2022 21:45:41 -0700 Subject: socket reconnection logic --- src/routes/__layout.svelte | 19 ++----------------- src/routes/invoice.js | 4 ++-- src/routes/invoice.svelte | 15 +++++++-------- 3 files changed, 11 insertions(+), 27 deletions(-) (limited to 'src/routes') diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index 0168bb7c..f5576edd 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -1,24 +1,9 @@ diff --git a/src/routes/invoice.js b/src/routes/invoice.js index fa493fe1..49bcfe70 100644 --- a/src/routes/invoice.js +++ b/src/routes/invoice.js @@ -10,11 +10,11 @@ export async function GET({ params }) { }) .text(); - let body = await got + await got .post('http://localhost:3119/invoice', { json: { invoice: { text, network }, user: { username } } }) .json(); - return { body }; + return { body: { text } }; } diff --git a/src/routes/invoice.svelte b/src/routes/invoice.svelte index 6ea9e67f..40a66a24 100644 --- a/src/routes/invoice.svelte +++ b/src/routes/invoice.svelte @@ -1,13 +1,12 @@ - }); - +QR code - QR code - - {$rate} +{text} +{$rate} -- cgit v1.2.3