diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/ln/[lnurl]/+page.server.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/routes/(app)/ln/[lnurl]/+page.server.ts b/src/routes/(app)/ln/[lnurl]/+page.server.ts index e6d62430..2df64e93 100644 --- a/src/routes/(app)/ln/[lnurl]/+page.server.ts +++ b/src/routes/(app)/ln/[lnurl]/+page.server.ts @@ -7,7 +7,6 @@ const { decode, fromWords } = bech32; export async function load({ params, parent }) { const { user } = await parent(); - if (!user) redirect(307, "/register"); const rates = await getRates(); let data; @@ -53,7 +52,7 @@ export async function load({ params, parent }) { if (!["payRequest", "withdrawRequest"].includes(data.tag)) error(500, "We only support LNURLp and LNURLw at this time"); - data.rate = rates[user.currency]; + data.rate = rates[user?.currency || "USD"]; return data; } |
