diff options
| author | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
| commit | e11b199080b4b295dfb7b95187275565bce9c35a (patch) | |
| tree | 46098814beabc79de334898dbc4808aed8d5f329 /src/routes/(app)/ln | |
| parent | c9acca0218d47226c567da62c4a8bf97691c9b0d (diff) | |
| download | coinos-ui-e11b199080b4b295dfb7b95187275565bce9c35a.tar.gz coinos-ui-e11b199080b4b295dfb7b95187275565bce9c35a.zip | |
typescript
Diffstat (limited to 'src/routes/(app)/ln')
| -rw-r--r-- | src/routes/(app)/ln/[lnurl]/+page.server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/ln/[lnurl]/+page.server.ts b/src/routes/(app)/ln/[lnurl]/+page.server.ts index 7f0536c1..d1b1b86e 100644 --- a/src/routes/(app)/ln/[lnurl]/+page.server.ts +++ b/src/routes/(app)/ln/[lnurl]/+page.server.ts @@ -10,7 +10,7 @@ export async function load({ params, parent }) { try { let { lnurl } = params; data = await get(`/decode?text=${lnurl}`); - } catch (e) { + } catch (e: any) { error(500, e.message); } @@ -21,7 +21,7 @@ export async function load({ params, parent }) { } export const actions = { - pay: async ({ cookies, fetch, request }) => { + pay: async ({ fetch, request }) => { let error; let { callback, amount, minSendable, maxSendable } = await fd(request); |
