Remove points

This commit is contained in:
adam-skowronek 2023-01-06 19:25:27 +01:00
parent 213a16743d
commit 4383f016ff

View File

@ -21,13 +21,7 @@ const Group = () => {
refetch, refetch,
isLoading: isGroupLoading, isLoading: isGroupLoading,
} = useQuery(['getGroup', id], () => getGroup(Number(id))) } = useQuery(['getGroup', id], () => getGroup(Number(id)))
const { const { name, project_supervisor, students } = groups?.data || {}
name,
project_supervisor,
students,
points_for_first_term,
points_for_second_term,
} = groups?.data || {}
const [yearGroupId] = useLocalStorageState('yearGroupId') const [yearGroupId] = useLocalStorageState('yearGroupId')
const [studentOptions, setStudentOptions] = useState<SelectValue[]>([]) const [studentOptions, setStudentOptions] = useState<SelectValue[]>([])
@ -71,8 +65,6 @@ const Group = () => {
Opiekun: {project_supervisor?.first_name}{' '} Opiekun: {project_supervisor?.first_name}{' '}
{project_supervisor?.last_name} {project_supervisor?.last_name}
</h2> </h2>
<p>Punkty % za semestr 1: {points_for_first_term}</p>
<p>Punkty % za semestr 2: {points_for_second_term}</p>
<Link <Link
to={`/${ to={`/${