aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/pot
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-25 23:01:55 -0800
committerAdam Soltys <[email protected]>2023-01-25 23:01:55 -0800
commit06d21d381123f5da01bc92aaff7c185f62e754ca (patch)
tree071975ffa4c30f81a7a25b78b4cfd5f85fdf7ea5 /src/routes/(app)/send/pot
parentd5b26e787a0c4c1b0a757f58b537f0a890cb9133 (diff)
downloadcoinos-ui-06d21d381123f5da01bc92aaff7c185f62e754ca.tar.gz
coinos-ui-06d21d381123f5da01bc92aaff7c185f62e754ca.zip
sveltekit 1.0
Diffstat (limited to 'src/routes/(app)/send/pot')
-rw-r--r--src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js4
1 files changed, 2 insertions, 2 deletions
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 eadaa22e..0e1b7f5b 100644
--- a/src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js
+++ b/src/routes/(app)/send/pot/[name]/[...amount]/+page.server.js
@@ -1,4 +1,4 @@
-import { invalid, redirect } from '@sveltejs/kit';
+import { fail, redirect } from '@sveltejs/kit';
import { auth, post } from '$lib/utils';
export const actions = {
@@ -9,7 +9,7 @@ export const actions = {
try {
p = await post('/payments', body, auth(cookies));
} catch (e) {
- return invalid(400, { message: e.message });
+ return fail(400, { message: e.message });
}
if (p) throw redirect(307, `/pot/${body.name}`);