diff --git a/js/redux/tournamentApi.js b/js/redux/tournamentApi.js index 4669257..ddb883a 100644 --- a/js/redux/tournamentApi.js +++ b/js/redux/tournamentApi.js @@ -40,7 +40,7 @@ export function getTournamentMatches(tournamentId, successCallback, errorCallbac } getRequest(getState(), '/tournaments/' + tournamentId + '/matches' + matchFilter) .then(response => { - successCallback(response.status, response.data); + successCallback(response.status, response.data.map(match => convertMatch(match))); }) .catch(errorCallback); } diff --git a/pages/tournament-fullscreen.js b/pages/tournament-fullscreen.js index dd422a7..c4a9631 100644 --- a/pages/tournament-fullscreen.js +++ b/pages/tournament-fullscreen.js @@ -5,26 +5,25 @@ import 'bootstrap/dist/css/bootstrap.min.css'; import '../static/css/everypage.css'; import '../static/css/tournament-fullscreen.css'; import {getTournamentMatches, getTournamentMeta} from '../js/redux/tournamentApi'; -import {Navbar, NavbarBrand, NavItem} from 'reactstrap'; +import {Col, Navbar, NavbarBrand, NavItem, Row} from 'reactstrap'; +import {Match} from '../js/components/Match'; function FullscreenPage(props) { return (