diff options
| author | Adam Soltys <[email protected]> | 2024-11-12 23:36:15 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-12 23:36:15 -0800 |
| commit | bee96ca44e871b0482012be50e8e7686f534c5a3 (patch) | |
| tree | 8eee96b61e7996b0b5f94b596391949825a39b45 /src/routes/(app)/invoice | |
| parent | e6742ec5b333e5b3b7d174eae9f79c7d63b4b4e9 (diff) | |
| download | coinos-ui-bee96ca44e871b0482012be50e8e7686f534c5a3.tar.gz coinos-ui-bee96ca44e871b0482012be50e8e7686f534c5a3.zip | |
lightning bolt
Diffstat (limited to 'src/routes/(app)/invoice')
| -rw-r--r-- | src/routes/(app)/invoice/[id]/+layout.server.ts | 2 | ||||
| -rw-r--r-- | src/routes/(app)/invoice/[id]/+page.svelte | 2 |
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 |
