summaryrefslogtreecommitdiff
path: root/src/auth/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth/index.js')
-rw-r--r--src/auth/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auth/index.js b/src/auth/index.js
index 5ea24ff9..1bfc10c1 100644
--- a/src/auth/index.js
+++ b/src/auth/index.js
@@ -1,4 +1,4 @@
-import {COMPLETE_LOGIN, LOG_OUT} from "../actions/auth";
+import {LOG_IN_SUCCEEDED, LOG_OUT} from "../actions/auth";
const getAuthObject = () => {
const authItem = localStorage.getItem("auth");
@@ -38,7 +38,7 @@ export const clearAuthLocalStorage = () => {
export const authRedirectMiddleware = store => next => action => {
switch (action.type) {
- case COMPLETE_LOGIN:
+ case LOG_IN_SUCCEEDED:
saveAuthLocalStorage(action.payload);
window.location.href = "/projects";
break;