From f7d9ec75ac19664fdfffd430ece29f288d6d4819 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 19 Jan 2023 16:00:17 -0800 Subject: rename network to type --- src/routes/(app)/pot/[name]/+page.svelte | 3 ++- src/routes/(app)/pot/[name]/withdraw/+page.server.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/routes/(app)/pot') diff --git a/src/routes/(app)/pot/[name]/+page.svelte b/src/routes/(app)/pot/[name]/+page.svelte index 48dc9b31..c936cf59 100644 --- a/src/routes/(app)/pot/[name]/+page.svelte +++ b/src/routes/(app)/pot/[name]/+page.svelte @@ -35,7 +35,8 @@

Public Pot

-

Anyone who knows the URL for this pot can add or take out funds

+

Anyone who knows the URL to this pot can add or take out funds

+

diff --git a/src/routes/(app)/pot/[name]/withdraw/+page.server.js b/src/routes/(app)/pot/[name]/withdraw/+page.server.js index 6534e07b..7a486d58 100644 --- a/src/routes/(app)/pot/[name]/withdraw/+page.server.js +++ b/src/routes/(app)/pot/[name]/withdraw/+page.server.js @@ -11,7 +11,7 @@ export const actions = { let body = Object.fromEntries(await request.formData()); try { - await post('/withdraw', body, auth(cookies)); + await post('/take', body, auth(cookies)); } catch (e) { return invalid(400, { message: e.message }); } -- cgit v1.2.3