We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c8011 commit f521afbCopy full SHA for f521afb
client/modules/User/actions.js
@@ -128,13 +128,24 @@ export function validateSession() {
128
};
129
}
130
131
+export function resetProject(dispatch) {
132
+ dispatch({
133
+ type: ActionTypes.RESET_PROJECT
134
+ });
135
136
+ type: ActionTypes.CLEAR_CONSOLE
137
138
+ browserHistory.push('/');
139
+}
140
+
141
export function logoutUser() {
142
return (dispatch) => {
143
apiClient.get('/logout')
144
.then(() => {
145
dispatch({
146
type: ActionTypes.UNAUTH_USER
147
});
148
+ resetProject(dispatch);
149
})
150
.catch((error) => {
151
const { response } = error;
0 commit comments