1
0
mirror of https://github.com/lexogrine/cs2-react-hud.git synced 2026-05-03 20:13:11 +02:00

Fixed crash & round number

This commit is contained in:
Hubert Walczak
2023-09-29 10:42:00 +02:00
parent 25cd6b7197
commit 4380d190fd
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -159,10 +159,10 @@ export default class TeamBox extends React.Component<IProps, IState> {
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)`;
}