aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-08-19 11:46:18 -0700
committerAdam Soltys <[email protected]>2024-08-19 11:46:18 -0700
commit9dfe907fa4188af90ccefe90abf8bd00894a391a (patch)
tree6413ba544a7bd7381d72b982922ec92b95b34dd1 /src
parentdf01ee8fdde2b9c6c617a1e5ed0306134c18219b (diff)
downloadcoinos-ui-9dfe907fa4188af90ccefe90abf8bd00894a391a.tar.gz
coinos-ui-9dfe907fa4188af90ccefe90abf8bd00894a391a.zip
check for user
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 f28faf99..169d8436 100644
--- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte
@@ -207,7 +207,7 @@
</div>
</button>
- {#if user.id === invoice.user.id}
+ {#if user?.id === invoice?.user?.id}
<button
class="w-full flex justify-center rounded-2xl border py-5 px-6 hover:opacity-80 text-xl"
on:click={toggleAmount}