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.
1 parent 2770546 commit 11c10aaCopy full SHA for 11c10aa
components/Header/Cart.vue
@@ -62,9 +62,10 @@ export default {
62
}
63
},
64
error(error) {
65
+ const debug = process.env.NODE_ENV !== 'production'
66
this.remoteError = error
67
// Logs out an error in the console if we are in development mode
- if (process.env.NODE_ENV === 'development') {
68
+ if (debug) {
69
console.error(error)
70
71
// Check if we are in the browser before checking localStorage
0 commit comments