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 = () => {
|
onClose = () => {
|
||||||
this.setState({ visible: false });
|
if (this.state.visible) {
|
||||||
this.props.onClose();
|
this.setState({ visible: false });
|
||||||
|
this.props.onClose();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidUpdate(prevProps) {
|
componentDidUpdate(prevProps) {
|
||||||
|
Loading…
Reference in New Issue
Block a user