- initial;
This commit is contained in:
10
src/store/selectors.js
Normal file
10
src/store/selectors.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { isEmpty } from 'ramda';
|
||||
|
||||
const selectors = (state, get, api) => ({
|
||||
getToken: () => {
|
||||
const userData = get.userData();
|
||||
return userData.access && !isEmpty(userData.access) ? userData.access : null;
|
||||
},
|
||||
})
|
||||
|
||||
export default selectors;
|
||||
Reference in New Issue
Block a user