"Fix_COI_and_routes"

This commit is contained in:
Zenflow
2026-03-11 13:07:04 -05:00
parent c22ebbe45c
commit ff1eb455dc
2 changed files with 29 additions and 7 deletions

View File

@@ -144,16 +144,16 @@ export const formatCOI = (coi) => {
}
}
const value = coi.toFixed(2)
const value = (coi * 100).toFixed(2)
if (coi <= 5) {
if (coi <= 0.05) {
return {
value: `${value}%`,
level: 'low',
color: '#10b981',
description: 'Low inbreeding - Excellent genetic diversity'
}
} else if (coi <= 10) {
} else if (coi <= 0.10) {
return {
value: `${value}%`,
level: 'medium',