Skip to content

Commit f097fc7

Browse files
committed
fix: trim group names
1 parent c3fa2a5 commit f097fc7

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
@@ -314,7 +314,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
314314
<GroupIcon style={{fontSize: "12px"}}/>
315315
<div>{studentGroups
316316
.filter(g => g.name && g.name.trim().length != 0)
317-
.map(r => r.name)
317+
.map(r => r.name!.trim())
318318
.join(', ')}</div>
319319
</Stack>
320320
</Typography>}

0 commit comments

Comments
 (0)