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.ts2
-rw-r--r--src/routes/(app)/invoice/[id]/+page.svelte2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/invoice/[id]/+layout.server.ts b/src/routes/(app)/invoice/[id]/+layout.server.ts
index c4a4ccab..f89e0de8 100644
--- a/src/routes/(app)/invoice/[id]/+layout.server.ts
+++ b/src/routes/(app)/invoice/[id]/+layout.server.ts
@@ -25,7 +25,7 @@ export async function load({ cookies, depends, params, url, parent }) {
let { amount, pending, received } = invoice;
amount = parseInt(amount);
- subject = user || invoice.user;
+ subject = invoice.user;
const paid =
(!amount && (pending || received)) ||
diff --git a/src/routes/(app)/invoice/[id]/+page.svelte b/src/routes/(app)/invoice/[id]/+page.svelte
index 4a838433..54e71071 100644
--- a/src/routes/(app)/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/invoice/[id]/+page.svelte
@@ -127,7 +127,7 @@
bind:showQr={$showQr}
/>
- <InvoiceTypes {aid} {user} {type} {types} {setType} t={$t} />
+ <InvoiceTypes {aid} {invoice} {user} {type} {types} {setType} t={$t} />
</div>
<SetAmount