fga-eps-mds/2019.1-unbrake

View on GitHub
unbrake-frontend/src/reducer/AuthReducer.js

Summary

Maintainability
A
0 mins
Test Coverage
import { VERIFYING_AUTH } from "../actions/Types";

const INITIAL_STATE = {
  loadingVerifyingAuth: false
};

export default (state = INITIAL_STATE, action) => {
  switch (action.type) {
    case VERIFYING_AUTH:
      return { loadingVerifyingAuth: action.payload };

    default:
      return state;
  }
};