ENCOA-180: Prevented users from checking their results if not released yet
This commit is contained in:
@@ -277,7 +277,11 @@ const StatsGridItem: React.FC<StatsGridItemProps> = ({
|
||||
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}),
|
||||
|
||||
Reference in New Issue
Block a user