fix: only error when selected
This commit is contained in:
parent
d63d49f246
commit
c7e7be4379
@ -63,7 +63,7 @@ const ProfileMore = (props: Props) => {
|
|||||||
useEffect(() => enhance.listen(uid, setStatus), [uid]);
|
useEffect(() => enhance.listen(uid, setStatus), [uid]);
|
||||||
|
|
||||||
// error during enhanced mode
|
// error during enhanced mode
|
||||||
const hasError = status?.status === "error";
|
const hasError = selected && status?.status === "error";
|
||||||
|
|
||||||
const onEdit = () => {
|
const onEdit = () => {
|
||||||
setAnchorEl(null);
|
setAnchorEl(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user