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}
-

${user.name}

-

${user.bio}

+

${userID}

+ ${userBio}