diff options
| author | Adam Soltys <[email protected]> | 2023-02-22 19:38:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-23 00:31:21 -0800 |
| commit | 50b270db6fda60b5b3e39a9dbada5c27a14cbad1 (patch) | |
| tree | 6cc2ce81bd703aab912f3594d8c1c2086fcc731d /src/routes/(app)/send/user | |
| parent | c1c019beae03bbebde70557e1d0a9e064a48927c (diff) | |
| download | coinos-ui-50b270db6fda60b5b3e39a9dbada5c27a14cbad1.tar.gz coinos-ui-50b270db6fda60b5b3e39a9dbada5c27a14cbad1.zip | |
fee slider wip
Diffstat (limited to 'src/routes/(app)/send/user')
| -rw-r--r-- | src/routes/(app)/send/user/[username]/[...amount]/+page.server.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js index 42b47c8f..40c2d919 100644 --- a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js +++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js @@ -1,5 +1,5 @@ import { error, fail, redirect } from '@sveltejs/kit'; -import { btc as asset, auth, get, post } from '$lib/utils'; +import { fd, btc as asset, auth, get, post } from '$lib/utils'; export async function load({ params, parent }) { let { user } = await parent(); @@ -12,7 +12,7 @@ export async function load({ params, parent }) { export const actions = { default: async ({ cookies, request }) => { try { - let body = Object.fromEntries(await request.formData()); + let body = await fd(request); let { amount, confirmed } = body; amount = parseInt(amount); |
