Web: Components: fixed error log after closing profile
This commit is contained in:
parent
68970eeebd
commit
4917c3e9ff
@ -81,8 +81,10 @@ class AvatarEditor extends React.Component {
|
||||
};
|
||||
|
||||
onClose = () => {
|
||||
if (this.state.visible) {
|
||||
this.setState({ visible: false });
|
||||
this.props.onClose();
|
||||
}
|
||||
};
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
|
Loading…
Reference in New Issue
Block a user