diff --git a/src/components/certification-card/index.tsx b/src/components/certification-card/index.tsx index 0a605b5ae..bda4ed90b 100644 --- a/src/components/certification-card/index.tsx +++ b/src/components/certification-card/index.tsx @@ -78,15 +78,22 @@ const CertificationCard = ({ renderSkeleton() ) : ( <> - {certifications.map((certification, index) => ( - - ))} + {certifications + .filter( + (certification) => + certification.year || + certification.name || + certification.body, + ) + .map((certification, index) => ( + + ))} )} diff --git a/src/components/education-card/index.tsx b/src/components/education-card/index.tsx index be52948e3..f21568fe1 100644 --- a/src/components/education-card/index.tsx +++ b/src/components/education-card/index.tsx @@ -70,14 +70,19 @@ const EducationCard = ({ renderSkeleton() ) : ( <> - {educations.map((item, index) => ( - - ))} + {educations + .filter( + (item) => + item.institution || item.degree || item.from || item.to, + ) + .map((item, index) => ( + + ))} )} diff --git a/src/components/experience-card/index.tsx b/src/components/experience-card/index.tsx index cc58deabd..ff7532269 100644 --- a/src/components/experience-card/index.tsx +++ b/src/components/experience-card/index.tsx @@ -75,19 +75,27 @@ const ExperienceCard = ({ renderSkeleton() ) : ( - {experiences.map((experience, index) => ( - - ))} + {experiences + .filter( + (experience) => + experience.company || + experience.position || + experience.from || + experience.to, + ) + .map((experience, index) => ( + + ))} )} diff --git a/src/components/github-project-card/index.tsx b/src/components/github-project-card/index.tsx index 9627ea372..4e2a9578e 100644 --- a/src/components/github-project-card/index.tsx +++ b/src/components/github-project-card/index.tsx @@ -98,9 +98,9 @@ const GithubProjectCard = ({
-
+
- {item.name} + {item.name}