Fix bug showing public tournaments as private
This commit is contained in:
parent
0a1678ed51
commit
4964040ad8
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue