Skip to content

Commit

Permalink
Do a router.push if we have an error
Browse files Browse the repository at this point in the history
  • Loading branch information
w3bdesign committed Feb 13, 2021
1 parent 2e94aff commit 2ab6288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Header/Cart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default {
// Check if we are in the browser before checking localStorage
// Will refresh the page to refetch the session from WooCommerce
if (process.browser && !localStorage.getItem('woo-session')) {
window.location.reload(true)
this.$router.push('/')
}
},
},
Expand Down

0 comments on commit 2ab6288

Please sign in to comment.