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 cd79935 commit 9093638Copy full SHA for 9093638
hwproj.front/src/components/Courses/StudentStats.tsx
@@ -102,10 +102,10 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
102
const showBestSolutions = isMentor
103
104
const bestTaskSolutions = new Map<number, string>()
105
- if (solutions && isMentor) {
+ if (props.solutions && isMentor) {
106
Lodash(homeworks)
107
.flatMap(h => h.tasks!)
108
- .map(t => solutions
+ .map(t => props.solutions!
109
.map(s => s.homeworks!
110
.flatMap(h1 => h1.tasks!)
111
.find(t1 => t1.id === t.id)?.solution || [])
0 commit comments