diff options
| author | Adam Soltys <[email protected]> | 2025-08-10 19:11:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-08-10 19:11:56 -0700 |
| commit | 09e886300b5a528150c8141164504aa244a1c070 (patch) | |
| tree | 25a1838bce8514edad36e00405437f6a902ef23e | |
| parent | 633e3a3d94777440f07ed00a88abc1ac388bb2f0 (diff) | |
| download | coinos-ui-09e886300b5a528150c8141164504aa244a1c070.tar.gz coinos-ui-09e886300b5a528150c8141164504aa244a1c070.zip | |
make lnurl route public
| -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; } |
