From 1c9c4cf34575a1819202dfc1507d48ac62dea8b4 Mon Sep 17 00:00:00 2001 From: Rafatul Alam Date: Sat, 31 Jul 2021 20:40:54 +0600 Subject: [PATCH] removed null display bug when user name or bio was not found in github-profiles project --- github-profiles/script.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/github-profiles/script.js b/github-profiles/script.js index e41f735..6ac589d 100644 --- a/github-profiles/script.js +++ b/github-profiles/script.js @@ -28,14 +28,16 @@ async function getRepos(username) { } function createUserCard(user) { + const userID = user.name || user.login + const userBio = user.bio ? `

${user.bio}

` : '' const cardHTML = `
${user.name}