Skip to content

Conversation

@kkgre257
Copy link

No description provided.

Copy link

@spitsfire spitsfire left a 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) {

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?

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) => {

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

Comment on lines +42 to +46
{/* // sender="Joe Biden"
// body="Get out by 8am. I'll count the silverware"
// timeStamp="2018-05-18T22:12:03Z"
// entries={entries}
// onUpdateLikeCount={updateLikeCount} */}

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

Suggested change
{/* // sender="Joe Biden"
// body="Get out by 8am. I'll count the silverware"
// timeStamp="2018-05-18T22:12:03Z"
// entries={entries}
// onUpdateLikeCount={updateLikeCount} */}

<div id="App">
<header>
<h1>Application title</h1>
<h1>Application title ❤️ {totalLikeTally}</h1>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants