From 4380d190fdfc5f493a8297a52e2dbecfd70912dc Mon Sep 17 00:00:00 2001 From: Hubert Walczak Date: Fri, 29 Sep 2023 10:42:00 +0200 Subject: [PATCH] Fixed crash & round number --- package.json | 4 ++-- src/HUD/MatchBar/MatchBar.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 0cc7d71..337551a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lexogrine_cs2_hud", - "version": "1.0.0", + "version": "1.0.1", "homepage": "./", "private": true, "dependencies": { @@ -11,7 +11,7 @@ "@types/react-dom": "17.0.11", "@types/simple-peer": "^9.11.3", "buffer": "^6.0.3", - "csgogsi-socket": "^2.7.1", + "csgogsi-socket": "^2.7.2", "query-string": "^6.12.1", "react": "^17.0.2", "react-dom": "^17.0.2", diff --git a/src/HUD/MatchBar/MatchBar.tsx b/src/HUD/MatchBar/MatchBar.tsx index f39e536..b6ef43e 100644 --- a/src/HUD/MatchBar/MatchBar.tsx +++ b/src/HUD/MatchBar/MatchBar.tsx @@ -159,10 +159,10 @@ export default class TeamBox extends React.Component { getRoundLabel = () => { const { map } = this.props; const round = map.round + 1; - if (round <= 30) { - return `Round ${round}/30`; + if (round <= 24) { + return `Round ${round}/24`; } - const additionalRounds = round - 30; + const additionalRounds = round - 24; const OT = Math.ceil(additionalRounds/6); return `OT ${OT} (${additionalRounds - (OT - 1)*6}/6)`; }