From a6de4ec62ddf54b6a2ce754a84ffc593ccae2548 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 31 Jan 2021 15:13:04 -0600 Subject: [PATCH] =?UTF-8?q?fix(web):=20=F0=9F=90=9B=20hide=20Description?= =?UTF-8?q?=20if=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/Description.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/components/Description.tsx b/web/src/components/Description.tsx index bb21d5f52..cebafd8ae 100644 --- a/web/src/components/Description.tsx +++ b/web/src/components/Description.tsx @@ -1,7 +1,6 @@ -import React from "react"; - interface Props { - description: string; + description?: string; } -export const Description = (props: Props) =>

{props.description}

; +export const Description = (props: Props) => + props.description ?

{props.description}

: null;