Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-maidea committed Jan 14, 2021
1 parent f1bc9ea commit b5abbe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/src/PinCodeEnter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PinCodeEnter extends React.PureComponent {
else {
let pinValidOverride = undefined;
if (this.props.handleResult) {
pinValidOverride = Promise.resolve(this.props.handleResult(pinCode));
pinValidOverride = await Promise.resolve(this.props.handleResult(pinCode));
}
this.setState({ pinCodeStatus: utils_1.PinResultStatus.initial });
this.props.changeInternalStatus(utils_1.PinResultStatus.initial);
Expand Down
2 changes: 1 addition & 1 deletion src/PinCodeEnter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class PinCodeEnter extends React.PureComponent<IProps, IState> {
} else {
let pinValidOverride = undefined;
if (this.props.handleResult) {
pinValidOverride = Promise.resolve(this.props.handleResult(pinCode));
pinValidOverride = await Promise.resolve(this.props.handleResult(pinCode));
}
this.setState({ pinCodeStatus: PinResultStatus.initial })
this.props.changeInternalStatus(PinResultStatus.initial)
Expand Down

0 comments on commit b5abbe7

Please sign in to comment.