소스 검색

fix: only error when selected

GyDi 3 년 전
부모
커밋
c7e7be4379
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/profile/profile-more.tsx

+ 1 - 1
src/components/profile/profile-more.tsx

@@ -63,7 +63,7 @@ const ProfileMore = (props: Props) => {
   useEffect(() => enhance.listen(uid, setStatus), [uid]);
   useEffect(() => enhance.listen(uid, setStatus), [uid]);
 
 
   // error during enhanced mode
   // error during enhanced mode
-  const hasError = status?.status === "error";
+  const hasError = selected && status?.status === "error";
 
 
   const onEdit = () => {
   const onEdit = () => {
     setAnchorEl(null);
     setAnchorEl(null);