From c7e7be4379a82778c882e5216709aa37cb1bfc15 Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Sun, 6 Mar 2022 17:06:45 +0800
Subject: [PATCH] fix: only error when selected

---
 src/components/profile/profile-more.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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