From a22c7bfac5918dce94fe28e5a2ca967edccb57a9 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Sun, 5 Feb 2017 10:38:55 +0100 Subject: [PATCH] on default view get only default password version --- src/store/getters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/getters.js b/src/store/getters.js index 6c0b698..0b58f4f 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -11,7 +11,7 @@ export const isGuest = state => !state.authenticated; export const passwordStatus = state => state.passwordStatus; export const version = state => { - if (state.password === null) { + if (state.password === null || state.route.path === '/options/default') { return state.defaultPassword.version; } return state.password.version;