diff --git a/src/pages/admin/userDetails/userDetailView.js b/src/pages/admin/userDetails/userDetailView.js index f86f79def..8764ef0f1 100644 --- a/src/pages/admin/userDetails/userDetailView.js +++ b/src/pages/admin/userDetails/userDetailView.js @@ -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) {