-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tigers Kindra Greenawalt #122
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice going, Kindra! Consider changing a couple of pieces based on feedback and you wave 03 test will pass!
const newChatMessage = [...entries]; | ||
for (let i = 0; i < newChatMessage.length; i++) { | ||
const message = newChatMessage[i]; | ||
if (ChatEntry.id === id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be ChatEntry
? This suggests it is a component. Did you mean message.id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wave 3 isn't passing because no hearts are ever successfully updated because of the wrong variable.
} | ||
setEntries(newChatMessage); | ||
}; | ||
const likedTotal = (entries) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 good job trying out reduce
{/* // sender="Joe Biden" | ||
// body="Get out by 8am. I'll count the silverware" | ||
// timeStamp="2018-05-18T22:12:03Z" | ||
// entries={entries} | ||
// onUpdateLikeCount={updateLikeCount} */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just remove this completely
{/* // sender="Joe Biden" | |
// body="Get out by 8am. I'll count the silverware" | |
// timeStamp="2018-05-18T22:12:03Z" | |
// entries={entries} | |
// onUpdateLikeCount={updateLikeCount} */} |
return ( | ||
<div id="App"> | ||
<header> | ||
<h1>Application title</h1> | ||
<h1>Application title ❤️ {totalLikeTally}</h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wave 3 test isn't passing because it expects to find specific text: 3 ❤️s
based on the test. So to replicate this, the text should be something like {totalLikeTally} ❤️s
No description provided.