diff --git a/view/next-project/src/components/fund_information/EditModal.tsx b/view/next-project/src/components/fund_information/EditModal.tsx index ed2d596f3..0ff44486d 100644 --- a/view/next-project/src/components/fund_information/EditModal.tsx +++ b/view/next-project/src/components/fund_information/EditModal.tsx @@ -34,7 +34,7 @@ export default function EditModal(props: ModalProps) { useEffect(() => { const teacher = props.teachers.find((teacher) => teacher.departmentID === departmentID); if (teacher && teacher.id) { - setFormData({ ...formData, teacherID: props.fundInformation.teacherID }); + setFormData({ ...formData, teacherID: teacher.id }); } }, [departmentID]);