Skip to content

Commit e24b9bc

Browse files
committed
fix: correct stickman movements after finish line
1 parent f856218 commit e24b9bc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

website/js/race-navigation.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@
184184
const nav = document.getElementById("race-nav");
185185
if (!nav || !state.sections.length) return;
186186

187+
// Footer section index is beyond our tracked sections — let the MutationObserver handle it
188+
if (sectionIndex >= state.sections.length) return;
189+
187190
const safeSectionIndex = clamp(sectionIndex, 0, state.sections.length - 1);
188191
const currentSection = state.sections[safeSectionIndex];
189192

0 commit comments

Comments
 (0)