aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/profile/ProfileMoreInfoDrawer.tsx9
-rw-r--r--src/screens/profile/SettingsCell.tsx5
2 files changed, 5 insertions, 9 deletions
diff --git a/src/components/profile/ProfileMoreInfoDrawer.tsx b/src/components/profile/ProfileMoreInfoDrawer.tsx
index f70f90d0..67e59747 100644
--- a/src/components/profile/ProfileMoreInfoDrawer.tsx
+++ b/src/components/profile/ProfileMoreInfoDrawer.tsx
@@ -36,13 +36,8 @@ const ProfileMoreInfoDrawer: React.FC<ProfileMoreInfoDrawerProps> = (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);
- }
+ navigation.navigate('SettingsScreen');
+ setIsOpen(false);
};
const onBlockUnblock = () => {
diff --git a/src/screens/profile/SettingsCell.tsx b/src/screens/profile/SettingsCell.tsx
index d9fab821..852a29dc 100644
--- a/src/screens/profile/SettingsCell.tsx
+++ b/src/screens/profile/SettingsCell.tsx
@@ -35,7 +35,6 @@ const SettingsCell: React.FC<SettingsCellProps> = ({
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<SettingsCellProps> = ({
endExit: 'slide_out_right',
},
});
- } else Linking.openURL(url);
+ } else {
+ Linking.openURL(url);
+ }
} catch (error) {
Alert.alert(error.message);
}