fix: only error when selected

This commit is contained in:
GyDi 2022-03-06 17:06:45 +08:00
parent b31cdce073
commit b5c8283575

View File

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