aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-08-24 19:51:31 -0400
committersecondl1ght <[email protected]>2022-08-24 19:51:31 -0400
commitf6ff5156b66efbb51ba046e37de65b466585124a (patch)
tree6fed2233ad80097cd75a2a0340f199f2c564eef0 /src/routes/invoice
parent8f8f85983d2f4cb734ed15b33ebc140028711733 (diff)
downloadcoinos-ui-f6ff5156b66efbb51ba046e37de65b466585124a.tar.gz
coinos-ui-f6ff5156b66efbb51ba046e37de65b466585124a.zip
remove duplicate elements and format
Diffstat (limited to 'src/routes/invoice')
-rw-r--r--src/routes/invoice/+server.js2
-rw-r--r--src/routes/invoice/[id]/+page.server.js1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/routes/invoice/+server.js b/src/routes/invoice/+server.js
index 4b961be9..3942904b 100644
--- a/src/routes/invoice/+server.js
+++ b/src/routes/invoice/+server.js
@@ -10,7 +10,7 @@ export async function POST({ request }) {
({ text } = await post('/lightning/invoice', { amount }, headers));
let invoice = { amount, currency, network, rate, tip, text };
- let { uuid } = await post('/invoice', { invoice, user: { username } }, headers);
+ let { uuid } = await post('/invoice', { invoice, user: { username } }, headers);
return new Response(JSON.stringify(uuid), { headers: { 'content-type': 'application/json' } });
}
diff --git a/src/routes/invoice/[id]/+page.server.js b/src/routes/invoice/[id]/+page.server.js
index d46d039b..5ab0069a 100644
--- a/src/routes/invoice/[id]/+page.server.js
+++ b/src/routes/invoice/[id]/+page.server.js
@@ -5,4 +5,3 @@ export async function load({ params }) {
let { id } = params;
return { id, invoice: await get(`/invoice?uuid=${id}`) };
}
-