Skip to content

Commit

Permalink
change TNT Tag key: TNTAG to TNTTAG
Browse files Browse the repository at this point in the history
  • Loading branch information
camnwalter authored and ChristianDobbie committed Jan 10, 2022
1 parent f19fe51 commit ef81163
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions processors/processGameCounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ function processGameCounts(data) {
const cleanGame = toMode(rawGame.replace(/_LOBBY/, ''), modes);
if (data_.modes && Object.keys(data_.modes).length > 1) {
const modes_ = {};
for (const [rawMode, count] of Object.entries(data_.modes)) {
for (let [rawMode, count] of Object.entries(data_.modes)) {
const cleanMode = toMode(rawMode, modes);
modes_[rawMode] = {};
switch (rawMode) {
case "PARTY":
case "PARTY":
modes_[rawMode].name = "Party Games";
break;
case "TNTAG":
rawMode = "TNTTAG";
modes_[rawMode] = {};
modes_[rawMode].name = "TNT Tag";
break;
default:
Expand Down

0 comments on commit ef81163

Please sign in to comment.