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

State of cart does not change when sign out #79

Open
ishraat opened this issue Apr 5, 2021 · 2 comments
Open

State of cart does not change when sign out #79

ishraat opened this issue Apr 5, 2021 · 2 comments

Comments

@ishraat
Copy link

ishraat commented Apr 5, 2021

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
Copy link

naqvii5 commented Apr 29, 2021

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

@RahulAid
Copy link

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

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

No branches or pull requests

3 participants