aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-12 18:22:52 -0500
committerGitHub <noreply@github.com>2021-03-12 18:22:52 -0500
commit813e9982bed74a9ccbc3b50b7e553ed1b456c93c (patch)
tree5a8d13256be83dd955d2a66a9dc9eebd26ee25c5 /src/components/profile
parent8bb3a254e8971428274568acdc969e4df0777409 (diff)
parent82f0448edfee2d1803098085f6710ac1eb7dcb91 (diff)
Merge pull request #292 from IvanIFChen/tma694-edit-badges
[TMA-694] Edit Badges
Diffstat (limited to 'src/components/profile')
-rw-r--r--src/components/profile/ProfileMoreInfoDrawer.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/profile/ProfileMoreInfoDrawer.tsx b/src/components/profile/ProfileMoreInfoDrawer.tsx
index 90f5da48..2fec5cca 100644
--- a/src/components/profile/ProfileMoreInfoDrawer.tsx
+++ b/src/components/profile/ProfileMoreInfoDrawer.tsx
@@ -42,7 +42,10 @@ 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,
+ });
setIsOpen(false);
}
};