aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/parse.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/parse.ts')
-rw-r--r--src/lib/parse.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts
index 781c7087..0ab3e809 100644
--- a/src/lib/parse.ts
+++ b/src/lib/parse.ts
@@ -10,7 +10,7 @@ export default async (t, host) => {
if (t.startsWith("http")) redirect(307, t);
if (t.startsWith(host)) redirect(307, `http://${t}`);
- let amount, id, user;
+ let amount, user;
t = t.trim();
t.toLowerCase().startsWith("bitcoin:") &&
@@ -37,7 +37,7 @@ export default async (t, host) => {
if (t.toLowerCase().startsWith("ln")) {
try {
- ({ id } = await get(`/invoice/${t}`));
+ await get(`/invoice/${t}`);
} catch (e) {
redirect(307, `/send/lightning/${t}`);
}