Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Prevent MemberAvatar soft-crashing when rendered with null member prop (
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Feb 1, 2022
1 parent 5973d72 commit bf8c04f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/avatars/MemberAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export default class MemberAvatar extends React.Component<IProps, IState> {
};
} else {
logger.error("MemberAvatar called somehow with null member or fallbackUserId");
return {} as IState; // prevent an explosion
}
}

Expand Down

0 comments on commit bf8c04f

Please sign in to comment.