diff --git a/src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx b/src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx index c6ed5ababa6a..a2475ca3ec70 100644 --- a/src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx +++ b/src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx @@ -30,7 +30,6 @@ import ROUTES from '@src/ROUTES'; import type SCREENS from '@src/SCREENS'; import INPUT_IDS from '@src/types/form/NewContactMethodForm'; import type {Errors} from '@src/types/onyx/OnyxCommon'; -import {isEmptyObject} from '@src/types/utils/EmptyObject'; type NewContactMethodPageProps = PlatformStackScreenProps; @@ -163,7 +162,7 @@ function NewContactMethodPage({route}: NewContactMethodPageProps) { User.clearContactMethodErrors(addSMSDomainIfPhoneNumber(pendingContactAction?.contactMethod ?? contactMethod), 'addedLogin'); }} onClose={() => { - if (!isEmptyObject(loginData?.errorFields) && pendingContactAction?.contactMethod) { + if (pendingContactAction?.contactMethod) { User.clearContactMethod(pendingContactAction?.contactMethod); User.clearUnvalidatedNewContactMethodAction(); }