Skip to content

Commit

Permalink
Merge pull request #660 from CBIIT/make_active
Browse files Browse the repository at this point in the history
making admin always active.
  • Loading branch information
iksheth authored Sep 14, 2022
2 parents 06a7e3b + b51d9d0 commit 27d4a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/admin/userDetails/userDetailView.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const UserDetailView = ({ classes, data, accessType = VIEW }) => {
comment: '',
};

if (userInfo.role === 'non-member' && userRole === 'admin') updatedUserDetails.userStatus = 'active';
if (userRole === 'admin') updatedUserDetails.userStatus = 'active';

mutate({ variables: { ...updatedUserDetails } }).then(({ data: responseData }) => {
if (responseData) {
Expand Down

0 comments on commit 27d4a08

Please sign in to comment.