We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb86100 + e373114 commit 2756433Copy full SHA for 2756433
client/modules/User/actions.js
@@ -141,6 +141,16 @@ export function validateSession() {
141
};
142
}
143
144
+export function resetProject(dispatch) {
145
+ dispatch({
146
+ type: ActionTypes.RESET_PROJECT
147
+ });
148
149
+ type: ActionTypes.CLEAR_CONSOLE
150
151
+ browserHistory.push('/');
152
+}
153
+
154
export function logoutUser() {
155
return (dispatch) => {
156
apiClient
@@ -149,6 +159,7 @@ export function logoutUser() {
159
dispatch({
160
type: ActionTypes.UNAUTH_USER
161
});
162
+ resetProject(dispatch);
163
})
164
.catch((error) => {
165
const { response } = error;
0 commit comments