Skip to content

Commit

Permalink
Merge pull request #26658 from hungvu193/fix-26048
Browse files Browse the repository at this point in the history
fix delay showing Notfound page
  • Loading branch information
cristipaval authored Sep 11, 2023
2 parents de209cf + 37c056f commit ef0eb33
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ class ContactMethodDetailsPage extends Component {

componentDidMount() {
const contactMethod = this.getContactMethod();
const loginData = this.props.loginList[contactMethod];
if (loginData) {
User.resetContactMethodValidateCodeSentState(contactMethod);
const loginData = lodashGet(this.props.loginList, contactMethod, {});
if (_.isEmpty(loginData)) {
return;
}
User.resetContactMethodValidateCodeSentState(this.getContactMethod());
}

componentDidUpdate(prevProps) {
Expand Down

0 comments on commit ef0eb33

Please sign in to comment.