Skip to content

Commit 4c9dd57

Browse files
Arreglo
1 parent 3de7888 commit 4c9dd57

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Components/GD/RegistrarNuevo/Contratos/Contratos.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default function TablaContratos({rows, loading: loadingContratos, error,
9797

9898
const pct =
9999
items.length > 0
100-
? (items.filter((i) => i.EstadoPaso === "Completado").length / items.length) *
100+
? (items.filter((i) => i.EstadoPaso === "Completado" || i.EstadoPaso?.toLocaleLowerCase() === "omitido").length / items.length) *
101101
100
102102
: 0;
103103

src/utils/completation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function computePctById(
4444

4545
const pct =
4646
items.length > 0
47-
? (items.filter((i) => i.EstadoPaso === "Completado").length / items.length) * 100
47+
? (items.filter((i) => i.EstadoPaso === "Completado" || i.EstadoPaso?.toLocaleLowerCase() === "omitido").length / items.length) * 100
4848
: 0;
4949

5050
return [id, Math.round(pct * 100) / 100] as const;

0 commit comments

Comments
 (0)