浏览代码

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