aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/pay
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/pay')
-rw-r--r--src/routes/(app)/pay/[username]/[...amount]/+page.server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/pay/[username]/[...amount]/+page.server.ts b/src/routes/(app)/pay/[username]/[...amount]/+page.server.ts
index ca0f382d..75cdac63 100644
--- a/src/routes/(app)/pay/[username]/[...amount]/+page.server.ts
+++ b/src/routes/(app)/pay/[username]/[...amount]/+page.server.ts
@@ -25,7 +25,7 @@ export async function load({ cookies, params, parent }) {
redirect(307, `/send/ark/${serverAddr}`);
}
}
- redirect(307, `/${username}/receive`);
+ redirect(307, `/invoice`);
}
const subject = await get(`/users/${username}`);
@@ -84,7 +84,7 @@ export const actions = {
}
if (parseInt(amount) > 0 && prompt) redirect(307, `/invoice/${id}/tip`);
- else if (parseInt(amount) <= 0) redirect(307, `/${username}/receive`);
+ else if (parseInt(amount) <= 0) redirect(307, `/invoice/${id}`);
redirect(307, `/invoice/${id}`);
},
};