From 196779e9f404916f2a2ddad53728410761f488ac Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 30 Mar 2021 14:12:31 -0400 Subject: remove check for SP to settings --- src/components/profile/ProfileMoreInfoDrawer.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/components/profile/ProfileMoreInfoDrawer.tsx b/src/components/profile/ProfileMoreInfoDrawer.tsx index f70f90d0..5c5edf6c 100644 --- a/src/components/profile/ProfileMoreInfoDrawer.tsx +++ b/src/components/profile/ProfileMoreInfoDrawer.tsx @@ -36,13 +36,9 @@ const ProfileMoreInfoDrawer: React.FC = (props) => { }; const goToSettingsPage = () => { - if (profile.suggested_people_linked === 0) { - Alert.alert(ERROR_ATTEMPT_EDIT_SP); - } else { - // Sending undefined for updatedSelectedBadges to mark that there was no update yet - navigation.navigate('SettingsScreen'); - setIsOpen(false); - } + // Sending undefined for updatedSelectedBadges to mark that there was no update yet + navigation.navigate('SettingsScreen'); + setIsOpen(false); }; const onBlockUnblock = () => { -- cgit v1.2.3-70-g09d2 From 4366feca828974b93d1211662f1fb6ee825a2374 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 30 Mar 2021 14:41:44 -0400 Subject: removed comments --- src/components/profile/ProfileMoreInfoDrawer.tsx | 1 - src/screens/profile/SettingsCell.tsx | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/components/profile/ProfileMoreInfoDrawer.tsx b/src/components/profile/ProfileMoreInfoDrawer.tsx index 5c5edf6c..67e59747 100644 --- a/src/components/profile/ProfileMoreInfoDrawer.tsx +++ b/src/components/profile/ProfileMoreInfoDrawer.tsx @@ -36,7 +36,6 @@ const ProfileMoreInfoDrawer: React.FC = (props) => { }; const goToSettingsPage = () => { - // Sending undefined for updatedSelectedBadges to mark that there was no update yet navigation.navigate('SettingsScreen'); setIsOpen(false); }; diff --git a/src/screens/profile/SettingsCell.tsx b/src/screens/profile/SettingsCell.tsx index f5360242..96eceecc 100644 --- a/src/screens/profile/SettingsCell.tsx +++ b/src/screens/profile/SettingsCell.tsx @@ -35,7 +35,6 @@ const SettingsCell: React.FC = ({ if (suggested_people_linked === 0) { Alert.alert(ERROR_ATTEMPT_EDIT_SP); } else { - // Sending undefined for updatedSelectedBadges to mark that there was no update yet navigateTo('UpdateSPPicture', { editing: true, }); @@ -85,7 +84,9 @@ const SettingsCell: React.FC = ({ endExit: 'slide_out_right', }, }); - } else Linking.openURL(url); + } else { + Linking.openURL(url); + } } catch (error) { Alert.alert(error.message); } -- cgit v1.2.3-70-g09d2