Skip to content

Commit

Permalink
Update AffiliationAndRoles.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hams7504 authored Nov 10, 2023
1 parent 960f918 commit c729243
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/user_profile/AffiliationAndRoles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down Expand Up @@ -250,4 +249,4 @@ export default function AffiliationAndRole(props) {
{profile.roles}
</p>
</div>;
}
}

0 comments on commit c729243

Please sign in to comment.