فهرست منبع

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]);
 
   // error during enhanced mode
-  const hasError = status?.status === "error";
+  const hasError = selected && status?.status === "error";
 
   const onEdit = () => {
     setAnchorEl(null);