diff --git a/src/components/Employee/ManageRole.jsx b/src/components/Employee/ManageRole.jsx index 714b5912..11dfdef0 100644 --- a/src/components/Employee/ManageRole.jsx +++ b/src/components/Employee/ManageRole.jsx @@ -83,7 +83,8 @@ const ManageRole = ({ employeeId, onClosed }) => { RolesRepository.createEmployeeRoles(result) .then((resp) => { showToast("Role assigned successfully", "success"); - setIsLoading(false); + setIsLoading( false ); + reset() onClosed(); }) .catch((err) => {