We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb96d37 commit 7f5b128Copy full SHA for 7f5b128
1 file changed
hwproj.front/src/components/Courses/StudentStats.tsx
@@ -101,7 +101,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
101
const hasTests = testsMaxSum > 0
102
103
const bestTaskSolutions = new Map<number, string>()
104
- if (solutions) {
+ if (solutions && isMentor) {
105
Lodash(homeworks)
106
.flatMap(h => h.tasks!)
107
.map(t => solutions
@@ -312,7 +312,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
312
studentId={String(cm.id)}
313
taskId={task.id!}
314
taskMaxRating={task.maxRating!}
315
- isBestSolution={isMentor && bestTaskSolutions.get(task.id!) === cm.id}
+ isBestSolution={bestTaskSolutions.get(task.id!) === cm.id}
316
{...additionalStyles}/>;
317
})
318
)}
0 commit comments