diff --git a/src/components/profile/profile-more.tsx b/src/components/profile/profile-more.tsx index 3c0b910..56c4ab6 100644 --- a/src/components/profile/profile-more.tsx +++ b/src/components/profile/profile-more.tsx @@ -63,7 +63,7 @@ const ProfileMore = (props: Props) => { useEffect(() => enhance.listen(uid, setStatus), [uid]); // error during enhanced mode - const hasError = status?.status === "error"; + const hasError = selected && status?.status === "error"; const onEdit = () => { setAnchorEl(null);