diff --git a/src/components/views/avatars/BaseAvatar.tsx b/src/components/views/avatars/BaseAvatar.tsx index 7f30a7a377..4c6fde19eb 100644 --- a/src/components/views/avatars/BaseAvatar.tsx +++ b/src/components/views/avatars/BaseAvatar.tsx @@ -134,7 +134,7 @@ const BaseAvatar = (props: IProps) => { aria-hidden="true" /> ); - if (onClick !== null) { + if (onClick) { return ( { } } - if (onClick !== null) { + if (onClick) { return ( { }; export default BaseAvatar; -export type BaseAvatarType = React.FC; \ No newline at end of file +export type BaseAvatarType = React.FC;