mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-10-23 11:23:05 +02:00
Null check
This commit is contained in:
parent
ad42e1113c
commit
4d13df84a0
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user