diff --git a/src/components/user-profile/UserProfileView.tsx b/src/components/user-profile/UserProfileView.tsx index 3a70ddd5..ba0e603c 100644 --- a/src/components/user-profile/UserProfileView.tsx +++ b/src/components/user-profile/UserProfileView.tsx @@ -63,7 +63,7 @@ export const UserProfileView: FC<{}> = props => { setUserProfile(prevValue => { - isSameProfile = (prevValue.id === parser.id); + if(prevValue && prevValue.id) isSameProfile = (prevValue.id === parser.id); return parser; });