Skip to content

Commit

Permalink
fix Contact methods - Login with secondary contact details link displ…
Browse files Browse the repository at this point in the history
…ays magic code verify UI for sometime
  • Loading branch information
hungvu193 committed Sep 11, 2023
1 parent ae30c3c commit 37c056f
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 37c056f

Please sign in to comment.