Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Tigers Kindra Greenawalt #122

wants to merge 2 commits into from

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} */}

return (
<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