mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-03 06:32:19 +00:00
0.0.6
- Fix hitting dashboard when logged out - Clean up app.js
This commit is contained in:
parent
2f8aa2e502
commit
0c56281bcd
7 changed files with 40 additions and 46 deletions
|
@ -55,7 +55,10 @@ class Dashboard extends React.Component {
|
|||
|
||||
function mapStateToProps(state) {
|
||||
const { isLoggedIn } = state.auth;
|
||||
const { uuid } = state.auth.user;
|
||||
let uuid = null;
|
||||
if (isLoggedIn) {
|
||||
uuid = state.auth.user.uuid
|
||||
}
|
||||
|
||||
return {
|
||||
isLoggedIn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue