Fix timer parsing
This commit is contained in:
parent
e134492ef8
commit
5c27eccf3d
|
|
@ -49,7 +49,7 @@ export function getTournamentMatches(tournamentId, successCallback, errorCallbac
|
||||||
export function getTournamentTimerEnd(tournamentId, successCallback, errorCallback) {
|
export function getTournamentTimerEnd(tournamentId, successCallback, errorCallback) {
|
||||||
getRequest(getState(), '/tournaments/' + tournamentId + '/timer_end')
|
getRequest(getState(), '/tournaments/' + tournamentId + '/timer_end')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
const timerEndDate = new Date(response.data);
|
const timerEndDate = new Date(response.data.timer_end);
|
||||||
successCallback(response.status, timerEndDate);
|
successCallback(response.status, timerEndDate);
|
||||||
})
|
})
|
||||||
.catch(errorCallback);
|
.catch(errorCallback);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue