Skip to content

Commit

Permalink
Use updateCart function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG committed Jan 3, 2025
1 parent 77f04f2 commit 65e4bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/stores/useCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 65e4bbf

Please sign in to comment.