Skip to content

Commit

Permalink
refactor: simplify variable declarations and improve code readability…
Browse files Browse the repository at this point in the history
… in RoleTR component
  • Loading branch information
pranavgoel29 committed Nov 23, 2024
1 parent edaf446 commit 546e391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/AccessManagement/RoleTR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const RoleTR: FC<RoleTRProps> = (props) => {
};

const handleEditUserRole = () => {
const userRoleArray: any = Object.keys(getUserRolesData?.data);
const userRoleArray = Object.keys(getUserRolesData?.data);
if (userRoleArray.includes(selectedRole) || selectedRole === '') {
return;
}
Expand All @@ -143,7 +143,7 @@ const RoleTR: FC<RoleTRProps> = (props) => {
};

const handleResetPassword = (userName: string) => {
updateUserPasswordMutation({ userName: userName });
updateUserPasswordMutation({ userName });
};

const classes = styles;
Expand Down

0 comments on commit 546e391

Please sign in to comment.