wappsto-redux
Advanced tools
Comparing version 3.0.2 to 3.0.3
{ | ||
"name": "wappsto-redux", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -198,13 +198,11 @@ import { createSelector } from "reselect"; | ||
export const getUserData = () => { | ||
const stateTypeSelector = makeStateTypeSelector(); | ||
return createSelector( | ||
(state) => stateTypeSelector(state, 'user'), | ||
(entities) => { | ||
if(entities){ | ||
return Object.values(entities)[0]; | ||
} | ||
return undefined; | ||
const userStateSelector = makeStateTypeSelector(); | ||
export const getUserData = createSelector( | ||
(state) => userStateSelector(state, 'user'), | ||
(entities) => { | ||
if(entities){ | ||
return Object.values(entities)[0]; | ||
} | ||
); | ||
} | ||
return undefined; | ||
} | ||
) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48072
1226