From 1d895c3180096c74c0377b2e9a9c04688dc0f2bb Mon Sep 17 00:00:00 2001 From: LightningSw <139696895+LightningSw@users.noreply.github.com> Date: Fri, 21 Jul 2023 01:49:02 +0800 Subject: [PATCH] Fix the mode display error --- js/DataQuery.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/DataQuery.js b/js/DataQuery.js index e70fdac..3554386 100644 --- a/js/DataQuery.js +++ b/js/DataQuery.js @@ -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; }