diff options
| author | Adam Soltys <[email protected]> | 2023-01-28 00:05:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-28 00:06:44 -0800 |
| commit | fdf2e494e3be3e921a7583e640e347574d6c84e8 (patch) | |
| tree | 45fc25ad3ae9c8796ed481359e5279c6e7b2d359 /src | |
| parent | bcaf17d28fec60b0743040a3a5a361e38583503f (diff) | |
| download | coinos-ui-fdf2e494e3be3e921a7583e640e347574d6c84e8.tar.gz coinos-ui-fdf2e494e3be3e921a7583e640e347574d6c84e8.zip | |
missing form fields
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/+layout.server.js | 1 | ||||
| -rw-r--r-- | src/routes/(app)/ln/[lnurl]/+page.server.js | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/(app)/+layout.server.js b/src/routes/(app)/+layout.server.js index 1415bdca..4c09937c 100644 --- a/src/routes/(app)/+layout.server.js +++ b/src/routes/(app)/+layout.server.js @@ -20,7 +20,6 @@ export async function load({ cookies, request, url, params }) { } if (user && ['/', '/login', '/register'].includes(pathname) && request.method === 'GET') { - console.log('dashboarding', pathname); throw redirect(307, `/${user.username}/dashboard`); } diff --git a/src/routes/(app)/ln/[lnurl]/+page.server.js b/src/routes/(app)/ln/[lnurl]/+page.server.js index 6eebd87e..84d17b18 100644 --- a/src/routes/(app)/ln/[lnurl]/+page.server.js +++ b/src/routes/(app)/ln/[lnurl]/+page.server.js @@ -39,7 +39,7 @@ export const actions = { withdraw: async ({ cookies, fetch, request }) => { let error; - let { callback, amount, minWithdrawable, maxWithdrawable, k1 } = Object.fromEntries( + let { callback, amount, username, currency, minWithdrawable, maxWithdrawable, k1 } = Object.fromEntries( await request.formData() ); @@ -51,7 +51,7 @@ export const actions = { if (error) return fail(400, { error }); let invoice = { amount, type: 'lightning' }; - let user = { username: form.get('username'), currency: form.get('currency') }; + let user = { username, currency }; let { text: pr } = await post('/invoice', { invoice, user }, auth(cookies)); |
