We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4faf798 + 0ffbda5 commit ee62771Copy full SHA for ee62771
components/Header/Cart.vue
@@ -1,9 +1,6 @@
1
<template>
2
<div>
3
- <span v-if="remoteError" class="text-xl text-red-500"
4
- >Error getting cart<br />The server may be down</span
5
- >
6
- <div v-else>
+ <div v-if="!remoteError">
7
<NuxtLink to="/cart">
8
<transition name="cart">
9
<span
@@ -66,7 +63,9 @@ export default {
66
63
},
67
64
error(error) {
68
65
this.remoteError = error
69
- window.location.reload(true)
+ if (!localStorage.getItem('woo-session')) {
+ window.location.reload(true)
+ }
70
71
72
0 commit comments