From f3534eb17eb9251deedf2c5004b4180fb62074ef Mon Sep 17 00:00:00 2001 From: Zhora Shalyapin Date: Tue, 1 Apr 2025 15:01:33 +0000 Subject: [PATCH] fix color index --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index be6757c..ae900ba 100644 --- a/main.js +++ b/main.js @@ -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] } } })()