diff --git a/src/pages/employee/EmployeeList.jsx b/src/pages/employee/EmployeeList.jsx index 25db4eb8..6a294293 100644 --- a/src/pages/employee/EmployeeList.jsx +++ b/src/pages/employee/EmployeeList.jsx @@ -114,7 +114,7 @@ const EmployeeList = () => { recallEmployeeData() }) .catch((error) => { - showToast(error.message, "error"); + showToast(error.response.data.message, "error"); }); };