From 5c27eccf3dfce1798015ff2eb31cc12a8f31a378 Mon Sep 17 00:00:00 2001 From: Malaber Date: Thu, 13 Mar 2025 13:33:19 +0100 Subject: [PATCH] Fix timer parsing --- js/redux/tournamentApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/redux/tournamentApi.js b/js/redux/tournamentApi.js index f9a7c27..bda2da6 100644 --- a/js/redux/tournamentApi.js +++ b/js/redux/tournamentApi.js @@ -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);