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

fix: no more infinite error loop if cart creation fails #2574

Merged
merged 10 commits into from
Jul 29, 2020
Prev Previous commit
Next Next commit
Remove error if create cart is successfull
Signed-off-by: sirugh <[email protected]>
  • Loading branch information
sirugh committed Jul 27, 2020
commit fde344407fe73681c0e8a712978a9ac11cb4efc6
3 changes: 2 additions & 1 deletion packages/peregrine/lib/store/reducers/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const reducerMap = {

return {
...state,
cartId: String(payload)
cartId: String(payload),
getCartError: null
};
},
[actions.getDetails.request]: state => {
Expand Down