Fix bug showing public tournaments as private

This commit is contained in:
JP1998 2019-04-10 20:11:22 +02:00
parent 0a1678ed51
commit 4964040ad8
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ const reducer_tournamentinfo = (state = defaultstate_tournamentinfo, action) =>
action.parameters.successCallback();
}).catch(() => {
action.parameters.errorCallback();
})
});
return Object.assign({}, state, {});
case actiontypes_tournamentinfo.REQUEST_TOURNAMENT:
getRequest(action.state, '/tournaments/' + action.parameters.code).then((resp) => {

View File

@ -345,7 +345,7 @@ function convertTournament(apiTournament) {
code: apiTournament.code,
description: apiTournament.description,
name: apiTournament.name,
public: apiTournament.public,
isPublic: apiTournament.public,
ownerUsername: apiTournament.owner_username,
groupStage: groupStage,
playoffStages: playoffStages