From 645d0ab6fc0b057593f6e39f06b412c664b58565 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Wed, 23 Sep 2020 12:02:26 +0100 Subject: [PATCH] inline small

ternary --- src/components/GroupPreview.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/GroupPreview.tsx b/src/components/GroupPreview.tsx index 91596cf..f90ecf2 100644 --- a/src/components/GroupPreview.tsx +++ b/src/components/GroupPreview.tsx @@ -32,13 +32,11 @@ const GroupPreview: React.FC = ({ group }: IProps) => { ? group.short_description : null; - const descriptionP = description ?

{description}

: null; - return (

{group.name}

- {descriptionP} + {description ?

{description}

: null}
); };