From 22d9bf3cb781b7b882041dceba45c49bccc2e67d Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 24 Aug 2019 10:01:54 -0500 Subject: [PATCH] Description should never return null --- src/FilterLists.Web.V2/src/shared/Description.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Web.V2/src/shared/Description.tsx b/src/FilterLists.Web.V2/src/shared/Description.tsx index acd355276..4b030b5f0 100644 --- a/src/FilterLists.Web.V2/src/shared/Description.tsx +++ b/src/FilterLists.Web.V2/src/shared/Description.tsx @@ -5,7 +5,7 @@ interface Props { desriptionSourceUrl: string; }; -export const Description = (props: Props): JSX.Element | null => +export const Description = (props: Props): JSX.Element => props.desriptionSourceUrl ?
{props.desription}
:

{props.desription}

; \ No newline at end of file