Fix lints

This commit is contained in:
Robin
2024-06-04 11:20:25 -04:00
parent 07ce272e9f
commit 70fdc68b13
23 changed files with 60 additions and 38 deletions

View File

@@ -82,7 +82,7 @@ export function useProfile(client: MatrixClient | undefined): UseProfile {
user?.on(UserEvent.AvatarUrl, onChangeUser);
}
return () => {
return (): void => {
if (user) {
user.removeListener(UserEvent.DisplayName, onChangeUser);
user.removeListener(UserEvent.AvatarUrl, onChangeUser);