Skip to content

Commit

Permalink
fix(sidebar): Avoid error from null user (#73588)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper authored Jul 1, 2024
1 parent 46e5215 commit 3240680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/app/components/sidebar/sidebarDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ export default function SidebarDropdown({orientation, collapsed, hideOrgLinks}:
{!collapsed && orientation !== 'top' && (
<OrgAndUserWrapper>
<OrgOrUserName>
{hasOrganization ? org.name : user.name}{' '}
{hasOrganization ? org.name : user?.name}{' '}
<StyledChevron direction={isOpen ? 'up' : 'down'} />
</OrgOrUserName>
<UserNameOrEmail>
{hasOrganization ? user.name : user.email}
{hasOrganization ? user?.name : user?.email}
</UserNameOrEmail>
</OrgAndUserWrapper>
)}
Expand Down

0 comments on commit 3240680

Please sign in to comment.