Skip to content

Commit

Permalink
fix: cart type error in the console after opening mini cart as a guest
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszherba committed Oct 12, 2022
1 parent 2dc0251 commit 96db271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/theme/components/CartSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export default defineComponent({
const tempProduct = ref();
onMounted(() => {
if (!cart.value.id) {
if (!cart.value?.id) {
loadCart();
}
});
Expand Down

0 comments on commit 96db271

Please sign in to comment.