diff --git a/frontend/app/components/Client/Roles/Roles.tsx b/frontend/app/components/Client/Roles/Roles.tsx
index 1c2939928..75469d3cf 100644
--- a/frontend/app/components/Client/Roles/Roles.tsx
+++ b/frontend/app/components/Client/Roles/Roles.tsx
@@ -38,7 +38,7 @@ function Roles(props: Props) {
useEffect(() => {
if (removeErrors && removeErrors.size > 0) {
- removeErrors.forEach((e) => {
+ removeErrors.forEach((e: any) => {
toast.error(e);
});
}
@@ -47,21 +47,20 @@ function Roles(props: Props) {
};
}, [removeErrors]);
- const closeModal = (showToastMessage) => {
- if (showToastMessage) {
- toast.success(showToastMessage);
- props.fetchList();
- }
- setShowmModal(false);
- setTimeout(() => {
- init();
- }, 100);
- };
+ // const closeModal = (showToastMessage: boolean) => {
+ // if (showToastMessage) {
+ // toast.success(showToastMessage);
+ // props.fetchList();
+ // }
+ // // setShowmModal(false);
+ // setTimeout(() => {
+ // init();
+ // }, 100);
+ // };
const editHandler = (role: any) => {
init(role);
showModal(