Skip to content

Commit

Permalink
Fix the mode display error
Browse files Browse the repository at this point in the history
  • Loading branch information
snowflake-x authored Jul 20, 2023
1 parent f7df9da commit 1d895c3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions js/DataQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ export class DataQuery {

async queryGameMode(id) {
const result = await fetch('/lol-game-queues/v1/queues/' + id.toString()).then((res) => res.json());
if (result.isRanked) {
return result.name.substring(4);
} else {
return result.name;
}

return result.name;
}


Expand Down

0 comments on commit 1d895c3

Please sign in to comment.