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
commit181153639a072b0135668b88cb7605841dc620b9 (patch)
tree6413ba544a7bd7381d72b982922ec92b95b34dd1 /src
parent27d2d8a08b873e18047396bf7655a943b4ddac1b (diff)
downloadcoinos-ui-181153639a072b0135668b88cb7605841dc620b9.tar.gz
coinos-ui-181153639a072b0135668b88cb7605841dc620b9.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}