Skip to content

Supriya : Week3 Assignment#10

Open
supriyapuri wants to merge 11 commits intofrontend-application-development-uw20:masterfrom
supriyapuri:master
Open

Supriya : Week3 Assignment#10
supriyapuri wants to merge 11 commits intofrontend-application-development-uw20:masterfrom
supriyapuri:master

Conversation

@supriyapuri
Copy link

Week 3 HW Submission

Please fill out the information below in order to complete your assignment. Feel free to update this comment later if necessary.

  • Comfort rating on this assignment (1-5): 5
  • Completion rating on this assignment: complete

@supriyapuri supriyapuri changed the title Supriya : Week2 Assignment Supriya : Week3 Assignment May 7, 2020
Copy link
Contributor

@bhague1281 bhague1281 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works and looks amazing! Only comment for improvement I have is to clean up the spacing/formatting. You can look into automated code formatters like prettier to do this if you'd like https://create-react-app.dev/docs/setting-up-your-editor/#formatting-code-automatically


)}
</ul>
Total :${cartList.reduce((a,c)=> parseFloat(a) + parseFloat(c.cost), 0)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job calculating the total based on what's in the cart.

}
});

if(!itemAlreadyInCart){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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