Skip to content

Commit

Permalink
making admin always active.
Browse files Browse the repository at this point in the history
  • Loading branch information
iksheth committed Sep 14, 2022
1 parent e12d7c1 commit b51d9d0
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 @@ -147,7 +147,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 b51d9d0

Please sign in to comment.