From 6d0d0e5053f0408ad97b52f185f96a64cc45f872 Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Sat, 25 Jun 2022 14:59:59 -0500 Subject: [PATCH] conditionally render home page after characters are gotten --- client/src/pages/home.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/client/src/pages/home.js b/client/src/pages/home.js index 87a5022..c93deba 100644 --- a/client/src/pages/home.js +++ b/client/src/pages/home.js @@ -41,12 +41,18 @@ export default function Home() { } + characters = characters; + return ( <> - - - {getCharacterCards()} - + {characters.length > 0 ? + <> + + + {getCharacterCards()} + + + : null} ); } \ No newline at end of file