We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60899c8 commit 6957355Copy full SHA for 6957355
1 file changed
hwproj.front/src/components/Courses/StudentStats.tsx
@@ -126,7 +126,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
126
127
const hasHomeworks = homeworksMaxSum > 0
128
const hasTests = testsMaxSum > 0
129
- const showBestSolutions = isMentor
+ const showBestSolutions = isMentor && (hasHomeworks || hasTests)
130
131
const bestTaskSolutions = new Map<number, string>()
132
if (props.solutions && isMentor) {
0 commit comments