Skip to content

Commit

Permalink
[DUOS-2690] Institution Not Updated Correctly (#2390)
Browse files Browse the repository at this point in the history
  • Loading branch information
hams7504 authored Nov 13, 2023
1 parent 13ab5f7 commit 7833599
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/user_profile/AffiliationAndRoles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useEffect, useState } from 'react';
import { Institution, User } from '../../libs/ajax';
import { find, isNil, isNumber } from 'lodash';
import { Notifications } from '../../libs/utils';
import { Notifications, setUserRoleStatuses } from '../../libs/utils';
import { Storage } from '../../libs/storage';
import { FormField, FormFieldTypes } from '../../components/forms/forms';
import Tooltip from '@mui/material/Tooltip';
import { ThemeProvider, createTheme } from '@mui/material/styles';
Expand Down Expand Up @@ -115,6 +116,7 @@ export default function AffiliationAndRole(props) {
};

let updatedUser = await User.updateSelf(payload);
setUserRoleStatuses(updatedUser, Storage);
return updatedUser;
};

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

0 comments on commit 7833599

Please sign in to comment.