File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments