From ac51c3b8344a23ceb58d8618292ea98b22f66ed1 Mon Sep 17 00:00:00 2001 From: Getabalew Date: Tue, 3 Sep 2024 15:40:20 +0300 Subject: [PATCH 1/2] fix: navigate after clearning contact method --- .../settings/Profile/Contacts/ContactMethodDetailsPage.tsx | 5 ++++- .../settings/Profile/Contacts/ValidateContactActionPage.tsx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx index 2dc60867b87c0..3c00662682c86 100644 --- a/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx +++ b/src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx @@ -206,7 +206,10 @@ function ContactMethodDetailsPage({route}: ContactMethodDetailsPageProps) { User.clearContactMethod(contactMethod)} + onClose={() => { + User.clearContactMethod(contactMethod); + Navigation.goBack(ROUTES.SETTINGS_CONTACT_METHODS.getRoute(backTo)); + }} canDismissError /> )} diff --git a/src/pages/settings/Profile/Contacts/ValidateContactActionPage.tsx b/src/pages/settings/Profile/Contacts/ValidateContactActionPage.tsx index 469fb0908fcd9..157588a673977 100644 --- a/src/pages/settings/Profile/Contacts/ValidateContactActionPage.tsx +++ b/src/pages/settings/Profile/Contacts/ValidateContactActionPage.tsx @@ -42,6 +42,7 @@ function ValidateContactActionPage() { includeSafeAreaPaddingBottom={false} shouldEnableMaxHeight testID={ValidateContactActionPage.displayName} + offlineIndicatorStyle={themeStyles.mtAuto} > Date: Tue, 3 Sep 2024 16:16:36 +0300 Subject: [PATCH 2/2] remove uneccessary line --- src/libs/actions/User.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/actions/User.ts b/src/libs/actions/User.ts index 1ac44512b8c52..04d57e52be475 100644 --- a/src/libs/actions/User.ts +++ b/src/libs/actions/User.ts @@ -263,7 +263,6 @@ function deleteContactMethod(contactMethod: string, loginList: Record