Fix: comps starting at 1/2 final
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Dorian Zedler 2022-07-28 19:50:18 +02:00
parent 146e3dd6c2
commit f6b4af7f04
Signed by: dorian
GPG Key ID: 989DE36109AFA354
1 changed files with 2 additions and 1 deletions

View File

@ -212,11 +212,12 @@ export function convertResultsToSpeedFlowchartResult(
// - 1, 4, 2, 3 for firstRoundNumber=4
// - 1, 2 for firstRoundNumber=2
// TODO: come up with a proper alogorithm maybe
console.log('First round rank: ', firstRoundRank);
const ranksOfLaneAInOrder = [
[1, 2],
[1, 4, 2, 3],
[1, 8, 4, 5, 2, 7, 3, 6],
][firstRoundRank / 4];
][Math.floor(firstRoundRank / 4)];
const firstRoundPairs = ranksOfLaneAInOrder.map(rank => {
return {