Also check localstorage for settings if not found in state.

This commit is contained in:
2020-02-21 22:58:49 +01:00
parent fc2c3664d9
commit 9d1ac56b9a

View File

@@ -71,8 +71,10 @@ export default {
return undefined return undefined
}, },
isPlexAuthenticated: (state) => { isPlexAuthenticated: (state) => {
let hasPlexId = state.settings['plex_userid'] const settings = state.settings || getLocalStorageByKey('settings')
return hasPlexId != undefined const hasPlexId = settings['plex_userid']
return hasPlexId != null ? true : false
} }
}, },
mutations: { mutations: {