Skip to content

Commit

Permalink
fix: hide awards if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tc-imba committed Apr 1, 2024
1 parent 89eb5da commit 7f70577
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const AwardItem = (data) => {

const Awards = () => {
const siteMetadata = useSiteMetadata();
if (!siteMetadata.awards) return null;
if (!siteMetadata.awards || siteMetadata.awards.length === 0) return null;
return (
<div className={styles.homepageSection}>
<h2 style={{ marginBottom: '0rem' }}>Awards & Scholarships</h2>
Expand Down

0 comments on commit 7f70577

Please sign in to comment.