diff --git a/src/profile/useProfile.ts b/src/profile/useProfile.ts index 06294db7..2281bb1e 100644 --- a/src/profile/useProfile.ts +++ b/src/profile/useProfile.ts @@ -38,7 +38,7 @@ type ProfileSaveCallback = ({ removeAvatar: boolean; }) => Promise; -export function useProfile(client?: MatrixClient) { +export function useProfile(client: MatrixClient | undefined) { const [{ success, loading, displayName, avatarUrl, error }, setState] = useState(() => { let user: User | undefined = undefined;