From 4d13df84a03a99ba8c7c66e08ba4e2002b2a5bb0 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 23 Mar 2022 03:06:04 -0400 Subject: [PATCH] Null check --- src/components/user-profile/UserProfileView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });