Skip to content

Commit c794049

Browse files
committed
Fix FE
1 parent f7eda55 commit c794049

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,18 @@ const TournamentRankingTable = () => {
109109
</tbody>
110110
</table>
111111
</div>
112-
{roundTaskIds?.length > 0 && (
113-
<div className="d-flex justify-content-center align-items-center mt-2 mb-2">
114-
<span className="font-weight-bold">
115-
{i18next.t('Task')}: {currentRoundPosition + 1} / {roundTaskIds.length}
116-
</span>
117-
</div>
118-
)}
112+
{roundTaskIds?.length > 0 && (
113+
<div className="d-flex justify-content-center align-items-center mt-2 mb-2">
114+
<span className="font-weight-bold">
115+
{i18next.t('Task')}
116+
:
117+
{currentRoundPosition + 1}
118+
{' '}
119+
/
120+
{roundTaskIds.length}
121+
</span>
122+
</div>
123+
)}
119124
</div>
120125
);
121126
};

services/app/apps/codebattle/assets/js/widgets/pages/tournament/PlayerStatsPanel.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { getOpponentId } from '../../utils/matches';
1717
import StageCard from './StageCard';
1818
import StageTitle from './StageTitle';
1919
import StatisticsCard, { ArenaStatisticsCard } from './StatisticsCard';
20-
import TournamentPlace from './TournamentPlace';
2120
import UsersMatchList from './UsersMatchList';
2221

2322
const navMatchesTabsClassName = cn(

services/app/apps/codebattle/assets/js/widgets/pages/tournament/StatisticsCard.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import cn from 'classnames';
44
import { useSelector } from 'react-redux';
55

66
import CustomEventStylesContext from '@/components/CustomEventStylesContext';
7+
import { userRankingSelector } from '@/selectors';
78
import useMatchesStatistics from '@/utils/useMatchesStatistics';
89

910
import i18next from '../../../i18n';
1011

1112
import TournamentPlace from './TournamentPlace';
12-
import { userRankingSelector } from '@/selectors';
1313

1414
export function ArenaStatisticsCard({
1515
playerId,
@@ -85,12 +85,12 @@ export function ArenaStatisticsCard({
8585
}
8686

8787
function StatisticsCard({
88-
playerId, matchList = []
88+
playerId, matchList = [],
8989
}) {
9090
const [playerStats] = useMatchesStatistics(playerId, matchList);
9191
const playerRanking = useSelector(userRankingSelector(playerId));
9292

93-
console.log(playerRanking)
93+
console.log(playerRanking);
9494
const cardClassName = cn(
9595
'd-flex flex-column justify-content-center p-2 w-100',
9696
'align-items-center align-items-md-baseline align-items-lg-baseline align-items-xl-baseline',

0 commit comments

Comments
 (0)