Skip to content
Snippets Groups Projects
Commit c226dab2 authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

added new case to update currentUser info

parent 1b7978d1
No related branches found
No related tags found
4 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa
......@@ -113,26 +113,29 @@ function reducer(state, action) {
...state,
userIsLoggedIn:false,
currentUser: {
askTeacherQuestion : true,
id : '',
username : '',
email : '',
accessToken : '',
clientToken : '',
userAvatar : '',
userCover : '',
uid : '',
followCount : 0,
collectionsCount : 0,
submitter_request : 'default',
roles : []
},
askTeacherQuestion : false,
id : '',
name : '',
email : '',
avatar_file_name : '',
cover_file_name : '',
uid : '',
follows_count : 0,
collections_count : 0,
submitter_request : 'default',
roles : []
},
}
case 'TOGGLE_MODAL_COLABORAR_PLATAFORMA':
return {
...state,
modalColaborarPlataformaOpen : action.modalColaborarPlataformaOpen
}
case 'GET_USER':
return {
...state,
currentUser:action.user
}
default:
return state
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment