Преглед на файлове

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);