From 04bb54e74fd91cf943bc58903af1f6126a084a9d Mon Sep 17 00:00:00 2001 From: danielRedacted Date: Thu, 19 Sep 2024 15:13:15 -0700 Subject: [PATCH] fixed interests --- card.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/card.html b/card.html index de983f0..87f67ba 100644 --- a/card.html +++ b/card.html @@ -263,13 +263,13 @@

Let's connect

headline.innerHTML = details.headline; bio.innerHTML = details.bio; - interests = details.interests; - const interestsArray = interests.split(", "); + interestList = details.interests; + const interestsArray = interestList.split(", "); for (let interest of interestsArray) { - const div = document.createElement('div'); - div.classList.add("interest"); - div.innerHTML = interest; - interests.appendChild(div); + const interestDiv = document.createElement('div'); + interestDiv.classList.add("interest"); + interestDiv.innerHTML = interest; + interests.appendChild(interestDiv); } }