Skip to content

Commit bb5d7c0

Browse files
authored
Merge pull request #625 from reactioncommerce/fix-kieckhafer-cartToken
fix: update param name which was missed
2 parents d0d6068 + 8e1d450 commit bb5d7c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/containers/cart/queries.gql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#import "./fragments.gql"
22

33
# Get an anonymous cart by the anonymous cartId and and an anonymous cart token
4-
query anonymousCartByCartIdQuery($cartId: ID!, $token: String!, $itemsAfterCursor: ConnectionCursor) {
5-
cart: anonymousCartByCartId(cartId: $cartId, token: $token) {
4+
query anonymousCartByCartIdQuery($cartId: ID!, $cartToken: String!, $itemsAfterCursor: ConnectionCursor) {
5+
cart: anonymousCartByCartId(cartId: $cartId, cartToken: $cartToken) {
66
...CartQueryFragment
77
}
88
}

src/containers/cart/withCart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default function withCart(Component) {
161161
const { anonymousCartId, anonymousCartToken } = cartStore;
162162

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

0 commit comments

Comments
 (0)