Skip to content

Commit

Permalink
Merge pull request #18473 from Pujan92/fix/17889
Browse files Browse the repository at this point in the history
Fix: Red dot persists after removing phone number contact method
  • Loading branch information
pecanoro authored May 9, 2023
2 parents e52c1e2 + 7ed3816 commit 2bdeca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/settings/Profile/Contacts/NewContactMethodPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import ROUTES from '../../../../ROUTES';
import styles from '../../../../styles/styles';
import * as User from '../../../../libs/actions/User';
import * as LoginUtils from '../../../../libs/LoginUtils';
import * as OptionsListUtils from '../../../../libs/OptionsListUtils';
import CONST from '../../../../CONST';

const propTypes = {
Expand Down Expand Up @@ -87,7 +88,7 @@ function NewContactMethodPage(props) {
return;
}

User.addNewContactMethodAndNavigate(userLogin, password);
User.addNewContactMethodAndNavigate(OptionsListUtils.addSMSDomainIfPhoneNumber(userLogin), password);
}, [login, props.loginList, password]);

return (
Expand Down

0 comments on commit 2bdeca5

Please sign in to comment.