Skip to content

Commit

Permalink
fix: only error when selected
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Mar 6, 2022
1 parent d63d49f commit c7e7be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/profile/profile-more.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c7e7be4

Please sign in to comment.