aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/invoice
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/send/invoice')
-rw-r--r--src/routes/(app)/send/invoice/[id]/+page.server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.server.js b/src/routes/(app)/send/invoice/[id]/+page.server.js
index 0d23d307..261345fa 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.server.js
+++ b/src/routes/(app)/send/invoice/[id]/+page.server.js
@@ -6,7 +6,7 @@ export async function load({ params: { id }, parent, url }) {
let { amount, address, rate, prompt, tip, text, user: recipient } = await get(`/invoice/${id}`);
- if (prompt && tip === null) throw redirect(307, `/${recipient.username}/invoice/${id}/tip`);
+ if (prompt && tip === null) throw redirect(307, `/${recipient.username}/invoice/${id}/tip`);
if (recipient.username === user.username) throw error(500, { message: 'Cannot send to self' });
return { amount, address, tip, rate, payreq: text, recipient };
}