Skip to content

[BUG] Logging out resets user's shopping cart #82

@connoro7

Description

@connoro7

Introduced in #81
Upon logging out and logging back in, the user will find their shopping cart empty.

Occurs because of breaking change introduced in /frontend/reducers/cartReducers.js, CART_RESET resets the current shopping cart to its initial (empty) state upon logout, which is then saved to localStorage.

Because cart storage is currently handled via localStorage, one of these components will need to change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions