Fix timer parsing

This commit is contained in:
Daniel Schädler 2025-03-13 13:33:19 +01:00
parent e134492ef8
commit 5c27eccf3d
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export function getTournamentMatches(tournamentId, successCallback, errorCallbac
export function getTournamentTimerEnd(tournamentId, successCallback, errorCallback) {
getRequest(getState(), '/tournaments/' + tournamentId + '/timer_end')
.then(response => {
const timerEndDate = new Date(response.data);
const timerEndDate = new Date(response.data.timer_end);
successCallback(response.status, timerEndDate);
})
.catch(errorCallback);