Skip to content

Commit a5a9fb7

Browse files
Update with saved data (#2243)
1 parent 7f79b01 commit a5a9fb7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

frontend/public/src/components/forms/EditProfileForm.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ const getInitialValues = (user: User) => ({
3838
(user.user_profile && user.user_profile.leadership_level) || "",
3939
year_of_birth: (user.user_profile && user.user_profile.year_of_birth) || "",
4040
years_experience:
41-
(user.user_profile && user.user_profile.years_experience) || undefined
41+
(user.user_profile && user.user_profile.years_experience) || undefined,
42+
type_is_professional:
43+
(user.user_profile && user.user_profile.type_is_professional) || false,
44+
type_is_student:
45+
(user.user_profile && user.user_profile.type_is_student) || false,
46+
type_is_educator:
47+
(user.user_profile && user.user_profile.type_is_educator) || false,
48+
type_is_other:
49+
(user.user_profile && user.user_profile.type_is_other) || false
4250
}
4351
})
4452

0 commit comments

Comments
 (0)