Description should never return null

This commit is contained in:
Collin M. Barrett 2019-08-24 10:01:54 -05:00
parent edae92b0a5
commit 22d9bf3cb7

View file

@ -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
? <blockquote cite={props.desriptionSourceUrl}>{props.desription}</blockquote>
: <p>{props.desription}</p>;