mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Frontend] fix singular/plural student(s)
This commit is contained in:
@@ -63,7 +63,7 @@ export const CustomPopulationContent = ({
|
||||
|
||||
const panels = [
|
||||
{
|
||||
title: `Credit accumulation (for ${filteredStudents.length} students)`,
|
||||
title: `Credit accumulation (for ${filteredStudents.length} student${filteredStudents.length > 1 ? 's' : ''})`,
|
||||
content: (
|
||||
<CreditAccumulationGraph
|
||||
programmeCodes={[associatedProgramme].filter(Boolean) as string[]}
|
||||
|
||||
@@ -99,7 +99,7 @@ const PopulationDetailsContent = ({
|
||||
|
||||
const panels = [
|
||||
{
|
||||
title: `Credit accumulation (for ${filteredStudents.length} students)`,
|
||||
title: `Credit accumulation (for ${filteredStudents.length} student${filteredStudents.length > 1 ? 's' : ''})`,
|
||||
content: filteredStudents.length ? (
|
||||
// TODO: make wrapper for when no data.
|
||||
<CreditAccumulationGraph
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ const SingleStudyGuidanceGroupPanelsContent = ({
|
||||
}
|
||||
const panels = [
|
||||
{
|
||||
title: `Credit accumulation (for ${filteredStudents.length} students)`,
|
||||
title: `Credit accumulation (for ${filteredStudents.length} student${filteredStudents.length > 1 ? 's' : ''})`,
|
||||
content: (
|
||||
<>
|
||||
{!!group.tags?.year && (
|
||||
|
||||
Reference in New Issue
Block a user