diff --git a/src/pages/user_profile/AffiliationAndRoles.js b/src/pages/user_profile/AffiliationAndRoles.js index 562d3ce8f..dacff3903 100644 --- a/src/pages/user_profile/AffiliationAndRoles.js +++ b/src/pages/user_profile/AffiliationAndRoles.js @@ -116,8 +116,7 @@ export default function AffiliationAndRole(props) { }; let updatedUser = await User.updateSelf(payload); - const user = await User.getMe(); - setUserRoleStatuses(user, Storage); + setUserRoleStatuses(updatedUser, Storage); return updatedUser; }; @@ -250,4 +249,4 @@ export default function AffiliationAndRole(props) { {profile.roles}

; -} \ No newline at end of file +}