From f5440b300d37c4981e6dccc3598ba26cc8757f45 Mon Sep 17 00:00:00 2001 From: "C. Yang" Date: Fri, 5 Jan 2024 16:49:55 -0500 Subject: [PATCH] rename history --- src/ui.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ui.js b/src/ui.js index 2631646..4264489 100644 --- a/src/ui.js +++ b/src/ui.js @@ -112,10 +112,7 @@ export default class UIManager { fishInfo.innerHTML += `
Favorite food: ${fish.favoriteFood}`; let fishHistory = document.createElement("div"); - fishHistory.innerHTML = "
History:"; - if (!fish.history.length) { - fishHistory.innerHTML += " none yet"; - } + fishHistory.innerHTML = "
Mood Journal:"; for(let history of fish.history) { fishHistory.innerHTML += `
${history}`; }