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

Commit 30eeaa7

Browse files
committed
fixes ts strict type checking issues
1 parent 6df37f0 commit 30eeaa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/settings/AvatarSetting.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const AvatarSetting: React.FC<IProps> = ({ avatarUrl, avatarAltText, avatarName,
4141
let avatarElement = (
4242
<AccessibleButton
4343
element="div"
44-
onClick={uploadAvatar}
44+
onClick={uploadAvatar ?? null}
4545
className="mx_AvatarSetting_avatarPlaceholder"
4646
aria-labelledby={a11yId.current}
4747
{...hoveringProps}
@@ -54,7 +54,7 @@ const AvatarSetting: React.FC<IProps> = ({ avatarUrl, avatarAltText, avatarName,
5454
src={avatarUrl}
5555
alt={avatarAltText}
5656
aria-label={avatarAltText}
57-
onClick={uploadAvatar}
57+
onClick={uploadAvatar ?? null}
5858
{...hoveringProps}
5959
/>
6060
);

0 commit comments

Comments
 (0)