Skip to content

Commit

Permalink
Closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
Lcharvol committed Apr 5, 2018
1 parent e5f5cd6 commit fba6405
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/client/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Auth extends Component {
this.setState({ isAuthorized: true, isRequested: true });
} catch (err) {
this.setState({ isRequested: true });
console.log(err);
}
}

Expand Down
6 changes: 4 additions & 2 deletions src/client/pages/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,15 @@ export default compose(
req.genres()
.then(data => {
this.props.loadGenres(data);
});
})
.catch(err => err);
}
if (isEmpty(this.props.user)) {
req.getMyInfos()
.then(data => {
this.props.loadUser(data);
});
})
.catch(err => err);
}
},
}),
Expand Down

0 comments on commit fba6405

Please sign in to comment.