We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 533ed06 commit 763abd2Copy full SHA for 763abd2
hwproj.front/src/components/Courses/StudentStats.tsx
@@ -306,11 +306,13 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
306
}}
307
label={testsSum}/>
308
</TableCell>}
309
- {showBestSolutions && bestSolutionsCount > 0 && <TableCell
+ {showBestSolutions && <TableCell
310
align="center"
311
padding="none"
312
style={{borderLeft: borderStyle}}>
313
- <Typography variant={"caption"} color={"grey"}>{bestSolutionsCount}</Typography>
+ {bestSolutionsCount > 0
314
+ ? <Typography variant={"caption"} color={"grey"}>{bestSolutionsCount}</Typography>
315
+ : ""}
316
317
{homeworks.map((homework, idx) =>
318
homework.tasks!.map((task, i) => {
0 commit comments