mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-10 03:19:32 +00:00
If settings dont exist, return false for isAuthenticated.
This commit is contained in:
@@ -72,8 +72,10 @@ export default {
|
||||
},
|
||||
isPlexAuthenticated: (state) => {
|
||||
const settings = state.settings || getLocalStorageByKey('settings')
|
||||
const hasPlexId = settings['plex_userid']
|
||||
if (settings == null)
|
||||
return false
|
||||
|
||||
const hasPlexId = settings['plex_userid']
|
||||
return hasPlexId != null ? true : false
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user