Skip to content

Commit

Permalink
Merge pull request #625 from reactioncommerce/fix-kieckhafer-cartToken
Browse files Browse the repository at this point in the history
fix: update param name which was missed
  • Loading branch information
kieckhafer authored Dec 12, 2019
2 parents d0d6068 + 8e1d450 commit bb5d7c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/containers/cart/queries.gql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#import "./fragments.gql"

# Get an anonymous cart by the anonymous cartId and and an anonymous cart token
query anonymousCartByCartIdQuery($cartId: ID!, $token: String!, $itemsAfterCursor: ConnectionCursor) {
cart: anonymousCartByCartId(cartId: $cartId, token: $token) {
query anonymousCartByCartIdQuery($cartId: ID!, $cartToken: String!, $itemsAfterCursor: ConnectionCursor) {
cart: anonymousCartByCartId(cartId: $cartId, cartToken: $cartToken) {
...CartQueryFragment
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/cart/withCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function withCart(Component) {
const { anonymousCartId, anonymousCartToken } = cartStore;

// Add items to an existing anonymous cart
input.token = anonymousCartToken;
input.cartToken = anonymousCartToken;
input.cartId = anonymousCartId;
} else if (!isCreating && authStore.isAuthenticated && cartStore.hasAccountCart) {
// With an account and an account cart, set the accountCartId on the input object
Expand Down

0 comments on commit bb5d7c0

Please sign in to comment.