Skip to content

Commit

Permalink
rename history
Browse files Browse the repository at this point in the history
  • Loading branch information
cheryllium committed Jan 5, 2024
1 parent c528178 commit f5440b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ export default class UIManager {
fishInfo.innerHTML += `<br /><b>Favorite food: </b>${fish.favoriteFood}`;

let fishHistory = document.createElement("div");
fishHistory.innerHTML = "<br /><b>History:</b>";
if (!fish.history.length) {
fishHistory.innerHTML += " none yet";
}
fishHistory.innerHTML = "<br /><b>Mood Journal:</b>";
for(let history of fish.history) {
fishHistory.innerHTML += `<br />${history}`;
}
Expand Down

0 comments on commit f5440b3

Please sign in to comment.