diff --git a/frontend/src/pages/mod/userViewer.tsx b/frontend/src/pages/mod/userViewer.tsx index ca684973..e17fcc49 100644 --- a/frontend/src/pages/mod/userViewer.tsx +++ b/frontend/src/pages/mod/userViewer.tsx @@ -37,7 +37,7 @@ const UserViewer = (): JSX.Element => { const { status: studentDataStatus, error: studentDataError, data: studentInfo } = useQuery({ queryKey: ['studentInfo', userRut], retry: false, - onSuccess: (data) => { + onSuccess: (data: Student | null) => { if (data !== undefined && data !== null) { setSearchingPlanModalIsOpen(false) if (authState?.setStudent !== null) { diff --git a/frontend/src/pages/user/CurriculumListRow.tsx b/frontend/src/pages/user/CurriculumListRow.tsx index 57d9269c..71c7f8a2 100644 --- a/frontend/src/pages/user/CurriculumListRow.tsx +++ b/frontend/src/pages/user/CurriculumListRow.tsx @@ -8,7 +8,7 @@ interface RowProps { curriculum: LowDetailPlanView handleDelete?: Function handleFavourite?: Function - openPlanNameModal: Function + openPlanNameModal?: Function impersonateRut?: string } @@ -44,10 +44,12 @@ const CurriculumListRow = ({ curriculum, handleDelete, handleFavourite, openPlan }} >{curriculum.name} + {openPlanNameModal !== undefined &&