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

added USER_DELETED_ACCOUNT case to dispatch set

parent e5fc96a7
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
......@@ -106,6 +106,27 @@ function reducer(state, action) {
...state,
currentUser : action.currUser
}
case 'USER_DELETED_ACCOUNT':
localStorage.clear()
return {
...state,
userIsLoggedIn:false,
currentUser: {
askTeacherQuestion : true,
id : '',
username : '',
email : '',
accessToken : '',
clientToken : '',
userAvatar : '',
userCover : '',
uid : '',
followCount : 0,
collectionsCount : 0,
submitter_request : 'default',
roles : []
},
}
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