Skip to content

Commit 59831fb

Browse files
pimliepi0
authored andcommitted
fix(module): don't log fatal error when vuex is disabled (#518)
1 parent 42f9cfb commit 59831fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/module/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function validateOptions (options) {
5151
}
5252

5353
// Enforce vuex store because auth depends on it
54-
if (!this.options.store) {
54+
if (options.vuex && !this.options.store) {
5555
logger.fatal('Enable vuex store by creating `store/index.js`.')
5656
}
5757
}

0 commit comments

Comments
 (0)