rfe2205-fec-alpine / nile

This project is an ecommerce product page containing an overview section, related products section, ratings & reviews section and Q&A section. This is a dynamically rendered site that allows user interaction, examples include being able to submit product reviews, browse related products, create outfits, browse and submit questions and answers.
0 stars 2 forks source link

Number of viewable reviews persists when going to related products #69

Open noginger13 opened 2 years ago

noginger13 commented 2 years ago

Description

The number of reviews that are visible in the list stays the same if you go to a new product. I think it should be reset to up to 2 on each new product page.

https://github.com/rfe2205-fec-alpine/nile/blob/cd6b878589b09b64a6293d05634170880fc50f19/client/src/components/reviews/reviews.jsx#L34-L65

Files

reviews.jsx

To Reproduce

Go to a product with more than 2 reviews and click the more reviews button a few times. Then, click on a related product and you will see the list has up to the amount of reviews that would have been visible on the previous product page.

Tasks (optional)

samkbe commented 2 years ago

Good find!!