diff --git a/Frontend/src/views/Register/NMK_Manage.tsx b/Frontend/src/views/Register/NMK_Manage.tsx index 6ed78cd..1c14fce 100644 --- a/Frontend/src/views/Register/NMK_Manage.tsx +++ b/Frontend/src/views/Register/NMK_Manage.tsx @@ -19,6 +19,7 @@ import { DocumentTextIcon, PhoneIcon } from '@heroicons/react/20/solid'; import { IoMdPerson } from "react-icons/io"; import UserRegisteration from './userRegisteration'; import { getNMK } from '@/services/NMKService'; +import { getUsers } from '../../services/UserService'; type Person = { Name: string; @@ -143,7 +144,7 @@ const SimpleTable: React.FC = ({ id }) => { useEffect(() => { const fetchData = async () => { try { - const response = await getNMK({ NMK_Code: NMK_Code }); + const response = await getUsers({ NMK_Code: NMK_Code }); const responseData = await response.data; if (!Array.isArray(responseData.data)) { console.error('Invalid data format. Expected an array:', responseData.data);