aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/invoice')
-rw-r--r--src/routes/(app)/invoice/[id]/+layout.server.ts1
-rw-r--r--src/routes/(app)/invoice/[id]/paid/+page.svelte2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/(app)/invoice/[id]/+layout.server.ts b/src/routes/(app)/invoice/[id]/+layout.server.ts
index 71f53e09..a00515a0 100644
--- a/src/routes/(app)/invoice/[id]/+layout.server.ts
+++ b/src/routes/(app)/invoice/[id]/+layout.server.ts
@@ -16,6 +16,7 @@ export async function load({ depends, params, url, parent }) {
!(url.pathname.includes("tip") || url.pathname.includes("memo")) &&
!options
) {
+ console.log("YO")
redirect(307, `/send/invoice/${id}`);
}
diff --git a/src/routes/(app)/invoice/[id]/paid/+page.svelte b/src/routes/(app)/invoice/[id]/paid/+page.svelte
index df05f12b..80d5fe6e 100644
--- a/src/routes/(app)/invoice/[id]/paid/+page.svelte
+++ b/src/routes/(app)/invoice/[id]/paid/+page.svelte
@@ -76,7 +76,7 @@
{/if}
</div>
-<a href={`/receive`}>
+<a href={`/`}>
<div class="opacity-0 w-screen h-screen fixed top-0 left-0 z-50" />
</a>