Skip to content

Commit

Permalink
Merge pull request #11 from coverfy/master
Browse files Browse the repository at this point in the history
Avoid having isShow as true after handleCancel action
  • Loading branch information
xJkit authored Jul 11, 2018
2 parents fbf1498 + b9d2def commit 966448c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GoodByeProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ class Provider extends React.Component {
};

handleOk = () => {
this.pass(true);
this.setState({ isShow: false });
this.pass(true);
};

handleCancel = () => {
this.pass(false);
this.setState({ isShow: false });
this.pass(false);
};

handlePass = bool => {
this.pass(bool);
this.setState({ isShow: false });
}
this.pass(bool);
};

render() {
const { children } = this.props;
Expand Down

0 comments on commit 966448c

Please sign in to comment.