src/frontend/packages/store/src/reducers/auth.reducer.ts
Function authReducer
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function authReducer(state: AuthState = defaultState, action): AuthState {
switch (action.type) {
case LOGIN:
return { ...state, loggingIn: true, loggedIn: false, error: false };
case LOGIN_SUCCESS: