Skip to content

Commit 24c2dc5

Browse files
committed
StudentStats: показывать предупреждение если нет студентов
1 parent d21901f commit 24c2dc5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ const StudentStats: React.FC<IStudentStatsProps> = (props) => {
100100

101101
return (
102102
<div>
103+
{solutions.length === 0 && <Alert severity="info">
104+
На курс пока ещё никто не записался
105+
</Alert>}
103106
{searched &&
104107
<Alert style={{marginBottom: 5}} severity="info"><b>Поиск: </b>
105108
{searched.replaceAll(" ", "·")}

0 commit comments

Comments
 (0)