-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change fixes the issue with order persistance between guest user (…
…#246) ### Why? - When a guest user adds products to the cart, he/she is not able to persist the cart after logging in. ### This change fixes need by:- 1. Guest user * 1. Check for localstorage order details, to find the order. * 2. Create new order if not found. 2. Logged in User * 1. Get user current user from api. * 2. If not current order, then check for localstorage order details, to find the order. * 3. Create new order if not found.
- Loading branch information
Showing
1 changed file
with
31 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters