Skip to content

Commit 2ab6288

Browse files
committed
Do a router.push if we have an error
1 parent 2e94aff commit 2ab6288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Header/Cart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default {
7676
// Check if we are in the browser before checking localStorage
7777
// Will refresh the page to refetch the session from WooCommerce
7878
if (process.browser && !localStorage.getItem('woo-session')) {
79-
window.location.reload(true)
79+
this.$router.push('/')
8080
}
8181
},
8282
},

0 commit comments

Comments
 (0)