Skip to content

Commit 2b594a4

Browse files
committed
Fix tournaments
1 parent af9d77d commit 2b594a4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

services/app/apps/codebattle/assets/js/widgets/pages/game/TournamentRankingTable.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ const TournamentRankingTable = () => {
126126
</div>
127127

128128
<div className="d-flex justify-content-around align-items-center mt-1">
129-
{(gameStatus.state !== GameStateCodes.playing && breakState === 'off') && (
129+
{
130+
(currentRoundPosition + 1 !== (roundTaskIds?.length || 0)
131+
&& gameStatus.state !== GameStateCodes.playing
132+
&& breakState === 'off') && (
130133
<span className="font-weight-bold me-3">
131134
{i18next.t('Round ends in ')}
132135
<TournamentRemainingTimer
@@ -135,7 +138,8 @@ const TournamentRankingTable = () => {
135138
duration={roundTimeoutSeconds || matchTimeoutSeconds}
136139
/>
137140
</span>
138-
)}
141+
)
142+
}
139143

140144
{(gameStatus.state !== GameStateCodes.playing && breakState === 'on') && (
141145
<span className="font-weight-bold me-3">

services/app/apps/codebattle/priv/gettext/ru/LC_MESSAGES/default.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ msgid "Your opponent is waiting: %{name}"
641641
msgstr "Ваш следующий оппонент: %{name}"
642642

643643
msgid "Next match will be opened. Show now?"
644-
msgstr "Следующая битва началась. Открыть сейчас?"
644+
msgstr "Баттл начался! Открыть сейчас?"
645645

646646
msgid "review"
647647
msgstr "общее"

0 commit comments

Comments
 (0)