aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-03-12 08:42:46 -0800
committerShravya Ramesh <shravs1208@gmail.com>2021-03-12 08:42:46 -0800
commitf399478fb2fe460ead185b0da7769faed8a8c515 (patch)
tree423ac6ae778332f936862d8969f7375ec9d5bd7e /src/components
parent803b7a7bcb173d6a263c9d43fec41e5cddfe98f4 (diff)
done
Diffstat (limited to 'src/components')
-rw-r--r--src/components/profile/ProfileMoreInfoDrawer.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/profile/ProfileMoreInfoDrawer.tsx b/src/components/profile/ProfileMoreInfoDrawer.tsx
index 90f5da48..d8f91abe 100644
--- a/src/components/profile/ProfileMoreInfoDrawer.tsx
+++ b/src/components/profile/ProfileMoreInfoDrawer.tsx
@@ -42,7 +42,11 @@ const ProfileMoreInfoDrawer: React.FC<ProfileMoreInfoDrawerProps> = (props) => {
if (suggested_people_linked === 0) {
Alert.alert(ERROR_ATTEMPT_EDIT_SP);
} else {
- navigation.push('UpdateSPPicture');
+ // Sending undefined for updatedSelectedBadges to mark that there was no update yet
+ navigation.push('UpdateSPPicture', {
+ editing: true,
+ updatedSelectedBadges: undefined,
+ });
setIsOpen(false);
}
};