diff options
| author | Adam Soltys <[email protected]> | 2024-08-19 11:54:35 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-19 11:54:35 -0700 |
| commit | 29ba15a54b365d473b42d2790d9f4f330c206b8c (patch) | |
| tree | dfcb1e5dd5a7445b1df0c297610f9319a4191d1b /src | |
| parent | 9dfe907fa4188af90ccefe90abf8bd00894a391a (diff) | |
| download | coinos-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.svelte | 2 |
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" |
