fix color index

This commit is contained in:
Zhora Shalyapin 2025-04-01 15:01:33 +00:00
parent eb0236195d
commit f3534eb17e

View File

@ -2485,7 +2485,7 @@
let category = points[getCpNumberFromOption(option)].categories.find(category => category.cat_id === catId)
if (category && category.pivot.bonus_time == "0") {
let stage = parseInt(category.pivot.stage)
option.style['background-color'] = stageColors[stage % stageColors.length]
option.style['background-color'] = stageColors[stage % stageColors.length - 1]
}
}
})()