From c842e47405d57c6a4b70a0baa6b6a56a52355f24 Mon Sep 17 00:00:00 2001 From: Matthias Hampel Date: Fri, 21 Jul 2023 22:50:44 +0200 Subject: [PATCH 1/2] Check if sessions are available --- src/App.js | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/src/App.js b/src/App.js index 2ae9117..db992ec 100644 --- a/src/App.js +++ b/src/App.js @@ -87,23 +87,27 @@ const App = () => { )} - - Official Sessions: - + {series.sessions && series.sessions.length > 0 && ( + <> + + Official Sessions: + -
- {series.sessions.map(session => { - return ( - - ) - })} -
- +
+ {series.sessions.map(session => { + return ( + + ) + })} +
+ + )} + ) })} From 5684d73c9130e676f385d9fa96be951aa86a55ea Mon Sep 17 00:00:00 2001 From: Matthias Hampel Date: Fri, 21 Jul 2023 22:50:57 +0200 Subject: [PATCH 2/2] Adds GT4 Falken Tyre Challenge --- src/data/official-sessions.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/data/official-sessions.js b/src/data/official-sessions.js index deccef2..cbc12e5 100644 --- a/src/data/official-sessions.js +++ b/src/data/official-sessions.js @@ -304,6 +304,16 @@ const officials = [ }, ] }, + { + seriesId: 'gt4-fixed', + shortLabel: 'GT4 Falken Tyre Challenge - Fixed', + label: 'GT4 Falken Tyre Challenge ', + cars: ["Mercedes-AMG GT4", "Porsche 718 Cayman GT4 Clubsport", "BMW M4 GT4", "McLaren 570S GT4", "Aston Martin Vantage GT4"], + links: { + discord: 'https://discord.gg/eeredmcx8G', + }, + sessions: [] + }, ] export {