Skip to content

Commit

Permalink
Start looking at round.scrambleSetCount in addition to round.scramble…
Browse files Browse the repository at this point in the history
…GroupCount.
  • Loading branch information
jfly committed Jul 5, 2018
1 parent 5f749a5 commit 9e58918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tnoodle-ui/src/WcaCompetitionJson.js
Expand Up @@ -81,7 +81,8 @@ export function normalizeCompetitionJson(competitionJson) {
// We look at scrambleGroupCount here for backwards compatibility.
// The attribute has been renamed to scrambleSetCount, but the WCA website has not
// yet been updated accordingly.
round.scrambleSetCount = round.scrambleGroupCount || round.scrambleSets.length || 1;
// TODO: remove the reference to scrambleGroupCount once the WCA website has been updated.
round.scrambleSetCount = round.scrambleSetCount || round.scrambleGroupCount || round.scrambleSets.length || 1;
}
round.scrambleSets.forEach(scrambleSet => {
scrambleSet.scrambles = scrambleSet.scrambles || [];
Expand Down

0 comments on commit 9e58918

Please sign in to comment.