Skip to content

Commit a6569cd

Browse files
committed
fix
1 parent 12ccdc8 commit a6569cd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

apps/codebattle/assets/js/widgets/pages/schedule/TournamentSchedule.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const views = {
2424
};
2525

2626
const haveSeasonGrade = (t) => t.grade !== grades.open;
27-
const filterMyTournaments = (userId) => (t) => t.ownerId === userId;
27+
const filterMyTournaments = (userId) => (t) => t.creatorId === userId;
2828

2929
const getEndOffsetParams = (t) => {
3030
if (t.finished && t.lastRoundEndedAt) {

apps/codebattle/assets/js/widgets/selectors/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ export const editorDataSelector = (playerId, roomMachineState) => (state) => {
124124

125125
const currentLangSlug =
126126
roomMachineState &&
127-
roomMachineState.matches({
128-
replayer: replayerMachineStates.on,
129-
})
127+
roomMachineState.matches({
128+
replayer: replayerMachineStates.on,
129+
})
130130
? meta.historyCurrentLangSlug
131131
: meta.currentLangSlug;
132132

@@ -456,7 +456,7 @@ export const currentUserCanModerateTournament = createDraftSafeSelector(
456456

457457
export const tournamentHideResultsSelector = (state) => !state.tournament.showResults;
458458

459-
export const tournamentOwnerIdSelector = (state) => state.tournament.ownerId;
459+
export const tournamentOwnerIdSelector = (state) => state.tournament.creatorId;
460460

461461
export const currentTournamentPlayerSelector = (state) => state.tournamentPlayer;
462462

0 commit comments

Comments
 (0)