Skip to content

Commit

Permalink
Fix: check for user not available
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmullapudi committed Jan 23, 2025
1 parent 4323e51 commit b330ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/webapp/src/common/user-util.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function getUserFromUsersData(usersData: User[], userId: string) {
}

export function getUserIcon(user: User) {
if (user.role === RoleEnum.BOT && user.image) {
if (user && user.role === RoleEnum.BOT && user.image) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const Component = getBotIcon(user.image as any);

Expand Down

0 comments on commit b330ef7

Please sign in to comment.