basir / amazona

Build Ecommerce Like Amazon By MERN Stack
https://www.udemy.com/course/build-ecommerce-website-like-amazon-react-node-mongodb
596 stars 483 forks source link

State of cart does not change when sign out #79

Open ishraat opened 3 years ago

ishraat commented 3 years ago

The state of cart (if there were items in it) is not set to empty when user signs out.

export const signout = () => (dispatch) => { localStorage.removeItem('userInfo'); localStorage.removeItem('cartItems'); dispatch({ type: USER_SIGNOUT }); };

naqvii5 commented 3 years ago

try to use Signout instead of . as Link doesn't refresh the page after signing out. In Navbar(Header)

RahulAid commented 6 months ago

I have worked on E Commerce Projects. I believe I would be able to fix it. Can I work on it ?