From f99cd4bdaa870aee7291795a73de54003f01faf0 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Sat, 28 Sep 2024 21:50:46 +0300 Subject: [PATCH] Better misc track hiding --- src/Schedule/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Schedule/utils.js b/src/Schedule/utils.js index 529c2fd..36e6713 100644 --- a/src/Schedule/utils.js +++ b/src/Schedule/utils.js @@ -1 +1,3 @@ -export const isTrackHidden = track => track?.name?.en === 'Other' || track?.name?.bg === 'Други'; +export const isTrackHidden = track => + ['други', 'misc', 'misc.'].includes(track?.name?.bg?.toLowerCase()) || + ['other', 'misc', 'misc.'].includes(track?.name?.en?.toLowerCase());