--- a/client/src/reducers/authReducer.js Thu Dec 06 01:35:30 2018 +0100
+++ b/client/src/reducers/authReducer.js Tue Dec 18 02:27:22 2018 +0100
@@ -114,7 +114,7 @@
case types.AUTH_REGISTER_ERROR:
return {
loading: false,
- success: action.type === types.AUTH_LOGIN_SUCCESS,
+ success: (action.type === types.AUTH_LOGIN_SUCCESS || action.type === types.AUTH_LOGIN_SUCCESS),
error: action.type === types.AUTH_REGISTER_ERROR,
errorMessages: action.type === types.AUTH_REGISTER_ERROR ? action.error : {}
}