Skip to content
Snippets Groups Projects
Commit 8ed29dfc authored by Tainan Felipe's avatar Tainan Felipe
Browse files

Fix undefined in client startup

parent d8f89140
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ const defaultProps = {
disabled: false,
},
dismiss: {
callback: () => {},
disabled: false,
},
preventClosing: false,
......
......@@ -37,7 +37,12 @@ class ModalSimple extends Component {
}
handleDismiss() {
this.props.modalHide(this.props.dismiss.callback);
const {
modalHide,
dismiss,
} = this.props;
if (!dismiss && !modalHide) return;
modalHide(dismiss.callback);
}
render() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment