Skip to content

Conversation

@nnnnat
Copy link
Contributor

@nnnnat nnnnat commented Aug 23, 2018

Resolves #4567
Impact: minor
Type: bugfix

Issue

removeFormCart method was throwing an error when removing the last item from an anonymous cart and would also not remove the item.

Solution

Updated params for getGraphQLContextInMeteorMethod to check for an anonymous user.
Passing cartToken to the updateCartItemsQuantity util funciton.

Breaking changes

N/A

Testing

  1. Spin up a fresh RC shop and as an anonymous customer add an item to the cart.
  2. Click the "Cart" button to open the dropdown cart, click the "x" to remove the item from the cart.
  3. The item should be removed from the cart and no errors are thrown in the terminal

@nnnnat nnnnat added this to the Little Bear milestone Aug 23, 2018
@brent-hoover brent-hoover self-requested a review August 24, 2018 00:07
Copy link
Collaborator

@brent-hoover brent-hoover left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. Verified fixed.

@spencern spencern merged commit 94f8e63 into release-1.15.0 Aug 24, 2018
@spencern spencern deleted the fix-4567-nnnnat-anon-cart-remove-item branch August 24, 2018 02:02
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

Successfully merging this pull request may close these issues.

4 participants