Skip to content

Commit 6957355

Browse files
committed
BestSolutions: показывать если есть домашние или контрольные работы
1 parent 60899c8 commit 6957355

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hwproj.front/src/components/Courses/StudentStats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
126126

127127
const hasHomeworks = homeworksMaxSum > 0
128128
const hasTests = testsMaxSum > 0
129-
const showBestSolutions = isMentor
129+
const showBestSolutions = isMentor && (hasHomeworks || hasTests)
130130

131131
const bestTaskSolutions = new Map<number, string>()
132132
if (props.solutions && isMentor) {

0 commit comments

Comments
 (0)