From b51d9d0a4376674f04523c376da9f905fdc5a3b3 Mon Sep 17 00:00:00 2001 From: Karan Sheth Date: Wed, 14 Sep 2022 17:32:51 -0400 Subject: [PATCH] making admin always active. --- src/pages/admin/userDetails/userDetailView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/admin/userDetails/userDetailView.js b/src/pages/admin/userDetails/userDetailView.js index 67c7567b4..47625d9b1 100644 --- a/src/pages/admin/userDetails/userDetailView.js +++ b/src/pages/admin/userDetails/userDetailView.js @@ -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) {