diff options
| author | Adam Soltys <[email protected]> | 2023-05-03 10:15:06 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-05-03 10:15:12 -0700 |
| commit | 9f238b409829cb8e427a2fd2a2173fc64d337ad7 (patch) | |
| tree | d3261d8babec9d3f18718c9af67a36e5e0833c9c | |
| parent | 029a5680354a73c6b7c395272c1f50e22932b59a (diff) | |
| download | coinos-ui-9f238b409829cb8e427a2fd2a2173fc64d337ad7.tar.gz coinos-ui-9f238b409829cb8e427a2fd2a2173fc64d337ad7.zip | |
redirect send to user urls
| -rw-r--r-- | src/routes/(app)/send/[...text]/+page.server.js | 2 | ||||
| -rw-r--r-- | src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/send/[...text]/+page.server.js b/src/routes/(app)/send/[...text]/+page.server.js index 513fa11e..ff014315 100644 --- a/src/routes/(app)/send/[...text]/+page.server.js +++ b/src/routes/(app)/send/[...text]/+page.server.js @@ -62,7 +62,7 @@ let parse = async (t, host) => { // user try { - user = await get(`/users/${t}`); + user = await get(`/users/${t.split('/')[0]}`); if (user.anon) user = null; } catch (e) {} diff --git a/src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js b/src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js index 6c11811c..3f819696 100644 --- a/src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js +++ b/src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js @@ -1,5 +1,5 @@ import { fail, redirect } from '@sveltejs/kit'; -import { auth, post } from '$lib/utils'; +import { auth, fd, post } from '$lib/utils'; export const actions = { default: async ({ cookies, request }) => { |
