Skip to content

Commit c42f1b2

Browse files
authored
fix: add guards to conditional loading in globalheader (#5516)
1 parent 8b2ab0d commit c42f1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/identity/components/GlobalHeader/GlobalHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const GlobalHeader: FC = () => {
7979

8080
const shouldLoadDropdowns = activeOrg?.id && activeAccount?.id
8181
const shouldLoadAvatar =
82-
user.firstName && user.lastName && user.email && org.id
82+
user?.firstName && user?.lastName && user?.email && org?.id
8383
const shouldLoadGlobalHeader = shouldLoadDropdowns || shouldLoadAvatar
8484

8585
const caretStyle = {fontSize: '18px', color: InfluxColors.Grey65}

0 commit comments

Comments
 (0)