From f89f09600149f4eca1f788378a46e0f7f7ad7520 Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Tue, 25 Nov 2025 12:47:54 -0600 Subject: [PATCH] now dont count 'no aplica' --- src/components/Perifericos/Pregunta7EP.tsx | 7 +++++-- src/components/Perifericos/Pregunta8.tsx | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Perifericos/Pregunta7EP.tsx b/src/components/Perifericos/Pregunta7EP.tsx index 967663d..5424cec 100644 --- a/src/components/Perifericos/Pregunta7EP.tsx +++ b/src/components/Perifericos/Pregunta7EP.tsx @@ -73,8 +73,11 @@ export default function Pregunta7EP() { const startItem = (currentPage - 1) * recordsPerPage + 1; const endItem = Math.min(startItem + recordsPerPage - 1, sortedData.length); - const totalLaboratorios = data.reduce((sum, item) => sum + Number(item.cantidad), 0); - + const totalLaboratorios = data.reduce( + (sum, item) => sum + (item.nombre != "NO_APLICA" ? Number(item.cantidad):0), + 0 + ); + return (