Skip to content

Commit

Permalink
fix: fix a problem which user info maybe return null cause error
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed May 4, 2024
1 parent 88b05da commit 96d8cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/shared/hooks/model/useUserInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export function useCachedUserInfo(
return users;
}, [userId, refetch]);

return userInfo;
return userInfo ?? {};
}

0 comments on commit 96d8cda

Please sign in to comment.