update selected profession

This commit is contained in:
Wikzyy
2025-03-07 11:37:40 +07:00
parent 24daa38004
commit e4b4b88d59

View File

@ -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);
}, []);