diff --git a/src/components/Medium/StatGridItem.tsx b/src/components/Medium/StatGridItem.tsx index b0c3622b..c4c31040 100644 --- a/src/components/Medium/StatGridItem.tsx +++ b/src/components/Medium/StatGridItem.tsx @@ -277,7 +277,11 @@ const StatsGridItem: React.FC = ({ selectedTrainingExams.some((exam) => exam.includes(timestamp)) && "border-2 border-slate-600", )} - onClick={examNumber === undefined ? selectExam : undefined} + onClick={() => { + if (!!assignment && !assignment.released) return; + if (examNumber === undefined) return selectExam(); + return; + }} style={{ ...(width !== undefined && {width}), ...(height !== undefined && {height}), diff --git a/src/exams/Finish.tsx b/src/exams/Finish.tsx index d1f3d7a8..f8d5a5b4 100644 --- a/src/exams/Finish.tsx +++ b/src/exams/Finish.tsx @@ -212,7 +212,7 @@ export default function Finish({user, scores, modules, information, solutions, i )} - {assignment && !assignment.released && ( + {assignment && !assignment.released && !isLoading && (
{/* */} @@ -223,7 +223,7 @@ export default function Finish({user, scores, modules, information, solutions, i
)} - {!isLoading && ( + {!isLoading && !(assignment && !assignment.released) && (
{moduleResultText(selectedModule, bandScore)}