diff options
| author | Adam Soltys <[email protected]> | 2022-10-27 07:06:50 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-27 07:06:50 -0700 |
| commit | 14ea7e748d8d36b2624c892c9cc38f9744fc5c0b (patch) | |
| tree | 7929c16cb0dc89b75299436032aa37d338e0c8a9 /src/components | |
| parent | 224cd6a24664fcebf7fc78f9138fe9d451d7db6c (diff) | |
| download | coinos-ui-14ea7e748d8d36b2624c892c9cc38f9744fc5c0b.tar.gz coinos-ui-14ea7e748d8d36b2624c892c9cc38f9744fc5c0b.zip | |
fix user profile page
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/AppHeader.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index bd37b65d..1cffaad8 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -12,12 +12,13 @@ $: update(data); let update = (data) => ({ subject, user } = data); - $: user && (menuButtons = [ + let menuButtons; + if(user) menuButtons = [ { key: 'nav.profile', icon: 'profile', href: `/${user.username}` }, { key: 'nav.settings', icon: 'settings', href: `/${user.username}/settings` }, { key: 'nav.support', icon: 'support', href: `/${user.username}/support` }, { key: 'nav.signOut', icon: 'logout', href: `/logout` } - ]); + ]; let showMenu = false; |
