diff --git a/src/pages/master/profession/hooks/ManageProfessionContext.tsx b/src/pages/master/profession/hooks/ManageProfessionContext.tsx index d77eabe..c4c4caf 100644 --- a/src/pages/master/profession/hooks/ManageProfessionContext.tsx +++ b/src/pages/master/profession/hooks/ManageProfessionContext.tsx @@ -61,7 +61,7 @@ const ManageProfessionContextProvider = ({ children }: { children: React.ReactNo }, []); const handleDeleteDialog = useCallback((show: boolean, selected_profession: string | null) => { - setSelectedProfession(show ? selectedProfession : null); + setSelectedProfession(show ? selected_profession : null); setShowDeleteDialog(show); }, []);