Updated providerName selector to retrieve the name even if provider is not available

This commit is contained in:
apanizo 2018-09-06 12:32:37 +02:00
parent a6ea834874
commit f61208d914
1 changed files with 1 additions and 3 deletions

View File

@ -19,10 +19,8 @@ export const providerNameSelector = createSelector(
providerSelector,
(provider: Provider) => {
const name = provider.get('name')
const loaded = provider.get('loaded')
const available = provider.get('available')
return loaded && available ? name.toLowerCase() : undefined
return name ? name.toLowerCase() : undefined
},
)