fix: extra whitespace in Castform header

Using the Castform template without a summary, still has extra whitespace for the summary. This commit fixes the extra whitespace to not appear when no summary is present.
This commit is contained in:
Scott Busche
2023-01-22 17:48:00 -06:00
parent b24da90ba7
commit e319dd3e3d

View File

@ -96,8 +96,12 @@ export const MastheadMain: React.FC = () => {
const { summary } = useAppSelector((state) => state.resume.present.basics);
return (
<div className="px-4 pt-4">
<Markdown>{summary}</Markdown>
</div>
<>
{summary && (
<div className="px-4 pt-4">
<Markdown>{summary}</Markdown>
</div>
)}
</>
);
};