From ba91c10751d7633e11d6e06137c51d048513fe15 Mon Sep 17 00:00:00 2001 From: nathan-j-edwards Date: Wed, 10 Apr 2024 20:43:20 -0400 Subject: [PATCH] fixed show more information on join chapter InfoTile --- src/components/TileGrid/InfoTile.tsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/TileGrid/InfoTile.tsx b/src/components/TileGrid/InfoTile.tsx index 33421776..868f3a67 100644 --- a/src/components/TileGrid/InfoTile.tsx +++ b/src/components/TileGrid/InfoTile.tsx @@ -55,15 +55,17 @@ const InfoTile = (params: InfoTileProps) => { ))} - - {!shouldShowMore ? "Show more" : "Show less"} -

- } - > - {moreInformation} -
+ {moreInformation ? ( + + {!shouldShowMore ? "Show more" : "Show less"} +

+ } + > + {moreInformation} +
+ ) : null} ); };