Skip to content

Commit fe096c8

Browse files
authored
Stats: не показывать группы пользователя без названия (#666)
* fix: user groups without name counting * fix: trim group names * fix: remove unneccesary trim * refactor
1 parent fec4733 commit fe096c8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
313313
<Stack direction="row" spacing={1}>
314314
<GroupIcon style={{fontSize: "12px"}}/>
315315
<div>{studentGroups
316+
.filter(g => g.name?.trim())
316317
.map(r => r.name)
317318
.join(', ')}</div>
318319
</Stack>

0 commit comments

Comments
 (0)