Browse Source

fix boolean expression always true

pull/86/head
afc163 9 years ago
parent
commit
4eb849c783
  1. 2
      components/modal/index.jsx

2
components/modal/index.jsx

@ -28,7 +28,7 @@ export default React.createClass({
this.setState({
confirmLoading: true
});
if (typeof this.props.onOk) {
if (typeof this.props.onOk === 'function') {
this.props.onOk();
}
},

Loading…
Cancel
Save