From a00ab0f13da4ee24630a7eef64f527a4d60d020f Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Tue, 6 May 2025 16:33:04 +0530 Subject: [PATCH] Tiggeer Toast with valide message --- src/pages/employee/EmployeeList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }); };