From 3d7998c4e9a1277d679206653b859acdc91df932 Mon Sep 17 00:00:00 2001 From: Hel Nershing Thapa Date: Wed, 27 Jul 2022 13:56:56 +0545 Subject: [PATCH] Not show social media links if they are falsy Updates condition to now show social media links when the value is an empty string. Earlier it would check only for null which would treat empty strings as truthy --- frontend/src/components/userDetail/headerProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/userDetail/headerProfile.js b/frontend/src/components/userDetail/headerProfile.js index 1a879c8332..7ac0afbe3e 100644 --- a/frontend/src/components/userDetail/headerProfile.js +++ b/frontend/src/components/userDetail/headerProfile.js @@ -81,7 +81,7 @@ const SocialMedia = ({ data }) => { )} {socialMediaItems.map((i) => { - if (data[i] === null) { + if (!data[i]) { return null; }