Use isPrimed api for getUser fetch action

This commit is contained in:
Berkeley Martinez
2016-01-05 12:26:14 -08:00
parent 8e1f8d2159
commit 53810102dd
2 changed files with 6 additions and 8 deletions

View File

@@ -8,6 +8,9 @@ export default contain(
{
store: 'appStore',
fetchAction: 'appActions.getUser',
isPrimed({ username }) {
return !!username;
},
getPayload(props) {
return {
isPrimed: !!props.username