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
commit29ba15a54b365d473b42d2790d9f4f330c206b8c (patch)
treedfcb1e5dd5a7445b1df0c297610f9319a4191d1b /src
parent9dfe907fa4188af90ccefe90abf8bd00894a391a (diff)
downloadcoinos-ui-29ba15a54b365d473b42d2790d9f4f330c206b8c.tar.gz
coinos-ui-29ba15a54b365d473b42d2790d9f4f330c206b8c.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"