From 65e4bbf1602afdf0678a498b76b7cc8b284898e0 Mon Sep 17 00:00:00 2001 From: Jade Geels Date: Fri, 3 Jan 2025 13:14:24 +0100 Subject: [PATCH] Use updateCart function --- resources/js/stores/useCart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/stores/useCart.js b/resources/js/stores/useCart.js index 6fa88c523..88b1f0364 100644 --- a/resources/js/stores/useCart.js +++ b/resources/js/stores/useCart.js @@ -35,7 +35,7 @@ export const refresh = async function (force = false) { { cart_id: mask.value }, ) - cart.value = Object.values(response.data)[0] + Vue.prototype.updateCart([], response) } catch (error) { console.error(error) GraphQLError.prototype.isPrototypeOf(error) && Vue.prototype.checkResponseForExpiredCart({}, await error?.response?.json())