diff --git a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js index 3b8a1edf48c3..b468607ed8f3 100644 --- a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js +++ b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js @@ -266,6 +266,9 @@ class ContactMethodDetailsPage extends Component { onCancel={() => this.toggleDeleteModal(false)} onModalHide={() => { InteractionManager.runAfterInteractions(() => { + if (!this.validateCodeFormRef.current) { + return; + } this.validateCodeFormRef.current.focusLastSelected(); }); }}