From ac6119b26537e69ae80ce8904a618a9617eea2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Eduardo=20Garc=C3=ADa=20M=C3=A1rquez?= Date: Thu, 8 Jan 2026 00:02:09 -0500 Subject: [PATCH] fix(frontend): correct pluralization in classmates count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use ternary operator to display correct singular/plural form: - "1 compañero" (singular) when count === 1 - "X compañeros" (plural) otherwise Fixes DEF-003: Page incorrectly showed "1 compañeros" instead of "1 compañero" when there was exactly one classmate. --- .../pages/classmates-page/classmates-page.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/app/features/classmates/pages/classmates-page/classmates-page.component.ts b/src/frontend/src/app/features/classmates/pages/classmates-page/classmates-page.component.ts index c51cc8a..e3f25d0 100644 --- a/src/frontend/src/app/features/classmates/pages/classmates-page/classmates-page.component.ts +++ b/src/frontend/src/app/features/classmates/pages/classmates-page/classmates-page.component.ts @@ -60,7 +60,7 @@ import { InitialsPipe } from '@shared/pipes/initials.pipe';

book {{ item.subjectName }} - {{ item.classmates.length }} compañeros + {{ item.classmates.length }} {{ item.classmates.length === 1 ? 'compañero' : 'compañeros' }}

@if (item.classmates.length === 0) {