diff options
Diffstat (limited to '')
| -rw-r--r-- | frontend/src/components/pages/maplist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/pages/maplist.js b/frontend/src/components/pages/maplist.js index f4041a2..a7464e9 100644 --- a/frontend/src/components/pages/maplist.js +++ b/frontend/src/components/pages/maplist.js | |||
| @@ -31,7 +31,7 @@ export default function Maplist(prop) { | |||
| 31 | const url = new URL(window.location.href) | 31 | const url = new URL(window.location.href) |
| 32 | 32 | ||
| 33 | const params = new URLSearchParams(url.search) | 33 | const params = new URLSearchParams(url.search) |
| 34 | gameState = parseFloat(params.get("game")) | 34 | gameState = parseFloat(location.pathname.split("/")[2]) |
| 35 | 35 | ||
| 36 | document.querySelector("#catPortalCount").innerText = data.data[gameState - 1].category_portals[0].portal_count; | 36 | document.querySelector("#catPortalCount").innerText = data.data[gameState - 1].category_portals[0].portal_count; |
| 37 | 37 | ||