aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/pot
diff options
context:
space:
mode:
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}`);