Skip to content

Commit

Permalink
fix: vqa2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
naumovski-filip committed Sep 7, 2023
1 parent fa22d1c commit e418746
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/User/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const User = (): JSX.Element => {
<li>
<Button
to={`my-profile/${profile?.id}`}
label={t('nav.profile')}
label={profile?.name ?? t('nav.profile')}
variant="text"
startIcon={<img className={styles.profileIcon} src={profile?.avatar_url} alt={profile?.name} />}
className={styles.button}
Expand All @@ -110,9 +110,11 @@ const User = (): JSX.Element => {
</li>
)}

<li className={styles.logoutLi}>
<Button onClick={onLogout} label={t('nav.logout')} variant="text" startIcon={<Exit />} className={styles.button} />
</li>
{(!profilesEnabled || !profileAndFavoritesPage) && (
<li className={styles.logoutLi}>
<Button onClick={onLogout} label={t('nav.logout')} variant="text" startIcon={<Exit />} className={styles.button} />
</li>
)}
</ul>
</div>
</div>
Expand Down

0 comments on commit e418746

Please sign in to comment.