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