Allow removing line items

This commit is contained in:
tniezg
2021-08-17 16:54:54 +02:00
parent a27996a088
commit 6ef9f4da89
3 changed files with 62 additions and 9 deletions

View File

@@ -70,11 +70,11 @@ export const handler: SWRHook<GetCartHook> = {
},
})
setCartToken(spreeCartCreateSuccessResponse.data.attributes.token)
spreeCartResponse = spreeCartCreateSuccessResponse
}
setCartToken(spreeCartResponse.data.attributes.token)
return normalizeCart(spreeCartResponse, spreeCartResponse.data)
},
useHook: