diff --git a/client/src/components/profile/Profile.js b/client/src/components/profile/Profile.js index 33b8a23105..f8cd5035cb 100644 --- a/client/src/components/profile/Profile.js +++ b/client/src/components/profile/Profile.js @@ -157,7 +157,7 @@ function Profile({ user, isSessionUser }) { /> {showHeatMap ? : null} - {showCerts ? : null} + {showCerts ? : null} {showPortfolio ? : null} {showTimeLine ? ( createSelector( @@ -112,18 +114,23 @@ const propTypes = { function renderCertShow(username, cert) { return cert.show ? ( - - - - - + + + + + + + + + + ) : null; } @@ -136,26 +143,27 @@ function Certificates({ }) { const renderCertShowWithUsername = curry(renderCertShow)(username); return ( - -

freeCodeCamp Certifications

-
- {hasModernCert ? ( - currentCerts.map(renderCertShowWithUsername) - ) : ( -

- No certifications have been earned under the current curriculum -

- )} - {hasLegacyCert ? ( -
-
-

Legacy Certifications

-
- {legacyCerts.map(renderCertShowWithUsername)} -
- ) : null} -
-
+ +

freeCodeCamp Certifications

+
+ {hasModernCert ? ( + currentCerts.map(renderCertShowWithUsername).filter(Boolean) + ) : ( +

+ No certifications have been earned under the current curriculum +

+ )} + {hasLegacyCert ? ( +
+
+

Legacy Certifications

+
+ {legacyCerts.map(renderCertShowWithUsername).filter(Boolean)} + +
+ ) : null} +
+
); }