fix: Corregir cálculo de transfer_rate en métricas

- transfer_rate ahora muestra el % real de transferencias
- FCR = 100 - transfer_rate (resolución en primer contacto)
- Antes ambos mostraban el mismo valor (FCR)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Susana
2026-01-12 08:48:43 +00:00
parent 7e24f4eb31
commit 8082a14e1b
3 changed files with 8 additions and 5 deletions

View File

@@ -1008,11 +1008,12 @@ export function buildHeatmapFromBackend(
)
: 0;
// Transfer rate es el % real de transferencias (NO el complemento)
const transferMetric = Math.max(
0,
Math.min(
100,
Math.round(100 - transfer_rate)
Math.round(transfer_rate)
)
);