From e1ac1959108793028ea7b1e1d8912c43fff710a5 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Mon, 23 Sep 2024 01:46:32 +0300 Subject: [PATCH] Fix property reading --- src/Schedule/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schedule/utils.js b/src/Schedule/utils.js index 971c6b0..4c6f3ab 100644 --- a/src/Schedule/utils.js +++ b/src/Schedule/utils.js @@ -2,4 +2,4 @@ export const getConferenceYear = conference => (new Date(conference.start_date)) export const getSpeakerName = speaker => speaker.first_name.concat(' ').concat(speaker.last_name); -export const isTrackHidden = track => track.name.en === 'Other' || track.name.bg === 'Други'; +export const isTrackHidden = track => track?.name?.en === 'Other' || track?.name?.bg === 'Други';