Null check

This commit is contained in:
Bill 2022-03-23 03:06:04 -04:00
parent ad42e1113c
commit 4d13df84a0

View File

@ -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;
});