aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-19 11:54:35 -0700
committerAdam Soltys <[email protected]>2024-08-19 11:54:35 -0700
commit6e2a1bc90ad6e46bb362061a42c8532aeb3d7dc0 (patch)
treedfcb1e5dd5a7445b1df0c297610f9319a4191d1b /src
parent181153639a072b0135668b88cb7605841dc620b9 (diff)
downloadcoinos-ui-6e2a1bc90ad6e46bb362061a42c8532aeb3d7dc0.tar.gz
coinos-ui-6e2a1bc90ad6e46bb362061a42c8532aeb3d7dc0.zip
check user id
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/+page.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
index 169d8436..776820ce 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
@@ -284,7 +284,7 @@
</div>
{/if}
- {#if user.id === invoice.user.id}
+ {#if user?.id === invoice?.user?.id}
<a href={`/voucher`}>
<button
class="flex gap-2 text-center break-all rounded-2xl hover:opacity-80 py-5 px-6 w-full mx-auto justify-center border text-xl whitespace-nowrap text-secondary"