Skip to content

Commit

Permalink
fix: fix undefined in url
Browse files Browse the repository at this point in the history
  • Loading branch information
naumovski-filip committed Jul 18, 2023
1 parent c8acc0f commit 9cc5fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UserMenu/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const UserMenu = ({ showPaymentsItem, small = false, onClick }: Props) => {
<MenuButton
small={small}
onClick={onClick}
to={`/u/my-profile/${currentProfile?.id}`}
to={`/u/my-profile/${currentProfile?.id ?? ''}`}
label={t('nav.profile')}
startIcon={<img className={styles.profileIcon} src={currentProfile?.avatar_url} alt={currentProfile?.name} />}
/>
Expand Down

0 comments on commit 9cc5fa9

Please sign in to comment.