From 19cea47b905ef4a00736b5e951555077a5cb0a56 Mon Sep 17 00:00:00 2001 From: Andres Date: Sat, 10 May 2025 03:52:53 +0200 Subject: [PATCH] only hide next match when no info, not the entire page --- src/app/(home)/major-league-balatro/page.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app/(home)/major-league-balatro/page.tsx b/src/app/(home)/major-league-balatro/page.tsx index 83567a8..1559f49 100644 --- a/src/app/(home)/major-league-balatro/page.tsx +++ b/src/app/(home)/major-league-balatro/page.tsx @@ -17,17 +17,16 @@ export default function MLBPage() { const nextMatch = matches .filter((match) => !match.completed && match.datetime > currentDate) .sort((a, b) => a.datetime.getTime() - b.datetime.getTime())[0] - if (!nextMatch) { - return 'All matches have been played' - } return (
- - - + {nextMatch && ( + + + + )} {/**/}