Skip to content

Commit

Permalink
Merge pull request #31 from openimis/feature/OTC-732
Browse files Browse the repository at this point in the history
OTC-732: Additional check for confirm action
  • Loading branch information
delcroip authored Nov 10, 2022
2 parents 57c3dcb + 1a0df26 commit 3fbfbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/FamilyForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FamilyForm extends Component {
reset: 0,
family: this._newFamily(),
newFamily: true,
consirmedAction: null,
confirmedAction: null,
};

_newFamily() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/InsureeSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class InsureeSearcher extends Component {
if (prevProps.submittingMutation && !this.props.submittingMutation) {
this.props.journalize(this.props.mutation);
this.setState({ reset: this.state.reset + 1 });
} else if (!prevProps.confirmed && this.props.confirmed) {
} else if (!prevProps.confirmed && this.props.confirmed && !!this.state.confirmedAction) {
this.state.confirmedAction();
}
}
Expand Down

0 comments on commit 3fbfbfa

Please sign in to comment.