Skip to content

Commit

Permalink
fix(desktop): nav avatar should only fail when src exists (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Feb 22, 2023
1 parent 0787ad9 commit e1ba192
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const MainPageNavAvatar: React.FC<MainPageNavAvatarProps> = ({
>
<Avatar
className="main-page-nav-avatar"
icon={<img src={avatar} onError={() => setAvatarLoadFailed(true)} />}
icon={<img src={avatar} onError={() => avatar && setAvatarLoadFailed(true)} />}
size={24}
/>
</Popover>
Expand Down

0 comments on commit e1ba192

Please sign in to comment.