diff --git a/src/stores/cart.js b/src/stores/cart.js index 9d212ffb..e704a58f 100644 --- a/src/stores/cart.js +++ b/src/stores/cart.js @@ -79,6 +79,8 @@ const store = () => { query: GET_MOST_RECENT_CART, errorsHandler, success: (res) => { + if (!res) return; + if (currentOrder && res.id !== currentOrder.id) update((state) => { state.conflicts = [currentOrder, res];