aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-05-03 10:15:06 -0700
committerAdam Soltys <[email protected]>2023-05-03 10:15:12 -0700
commit9f238b409829cb8e427a2fd2a2173fc64d337ad7 (patch)
treed3261d8babec9d3f18718c9af67a36e5e0833c9c /src
parent029a5680354a73c6b7c395272c1f50e22932b59a (diff)
downloadcoinos-ui-9f238b409829cb8e427a2fd2a2173fc64d337ad7.tar.gz
coinos-ui-9f238b409829cb8e427a2fd2a2173fc64d337ad7.zip
redirect send to user urls
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/send/[...text]/+page.server.js2
-rw-r--r--src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js2
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 }) => {