From 0119575e1b2103798b89b4dd556274c70b6ebed3 Mon Sep 17 00:00:00 2001 From: Jakub Kosmydel <104823336+kosmydel@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:22:50 +0100 Subject: [PATCH] fix --- .../settings/Profile/Contacts/ContactMethodDetailsPage.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.js index 3b8a1edf48c3a..b468607ed8f3a 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(); }); }}