Skip to content

Commit 624d13b

Browse files
add count of courses
1 parent e9497e7 commit 624d13b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/client/components/Statistics.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,19 @@ const SumRow = ({statsToShow}) => {
279279
return 0
280280
}
281281
}
282+
const statsToShowLength = statsToShow ? statsToShow.length : 0
283+
const statsMessage = t('stats:sum')
282284
return(
283285
<TableRow>
284286
<TableCell align="left">
285287
<Typography variant="h6">
286-
{t('stats:sum')}
288+
{statsMessage}
287289
</Typography>
288290
</TableCell>
289291
<TableCell>
292+
<Typography variant="h6">
293+
{statsToShowLength}
294+
</Typography>
290295
</TableCell>
291296
<TableCell align="left">
292297
</TableCell>

0 commit comments

Comments
 (0)