Skip to content

Commit 598d20b

Browse files
committed
Update Cart.vue
1 parent cc822cd commit 598d20b

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
@@ -71,7 +71,7 @@ export default {
7171
// Check if we are in the browser before checking localStorage
7272
// Will refresh the page to refetch the session from WooCommerce
7373
if (process.browser && !localStorage.getItem('woo-session')) {
74-
this.$router.push({ path: '/', force: true })
74+
window.location.reload(true)
7575
}
7676
},
7777
},

0 commit comments

Comments
 (0)