fix 2 bugs in React.Js (class components) and (React Context)

Job ID: 33894706

Budget: €8 – €30 EUR

the project is a small ecommerce using React JS (class components) & Context (React.createContext())
First bug :After reload, Please display the same page with the same data that was rendered before the reload.
Second:

A/ It should be possible to add the same product to the cart with different attributes.
B/ Product with same attributes should stack in the cart, while a product with different attributes should appear as separate cart items.

So,
in the first you should use local Storage to handle it (I use it to save the informations, you just conjure up those infos).
in the second I think It's when I Update Selected attributes in onUpdateSelectedAttr (at Context.js file: line115)
The data is coming from backend part in project (localhost:4000), you should run it.

Please contact me for any inquiries or additional information
Related categories: JavaScript React.js Typescript ECMAScript GraphQL