fix(web): 🐛 hide Description if null

This commit is contained in:
Collin M. Barrett 2021-01-31 15:13:04 -06:00
parent 1d892c4489
commit a6de4ec62d

View file

@ -1,7 +1,6 @@
import React from "react";
interface Props {
description: string;
description?: string;
}
export const Description = (props: Props) => <p>{props.description}</p>;
export const Description = (props: Props) =>
props.description ? <p>{props.description}</p> : null;