"use strict";

import { Constants as AssessmentConstants }  from "../actions/assessment";
import Immutable                             from "immutable";

const initialState = Immutable.fromJS({
  assessmentFormat: null
});

export default (state = initialState, action) => {

  switch(action.type){

    case AssessmentConstants.LOAD_ASSESSMENT_DONE:
      return state.set('assessmentFormat', action.payload.format);
      break;

    default:
      return state;
  }

};
"use strict";

import { Constants as AssessmentConstants }  from "../actions/assessment";
import Immutable                             from "immutable";

const initialState = Immutable.fromJS({
  assessmentFormat: null
});

export default (state = initialState, action) => {

  switch(action.type){

    case AssessmentConstants.LOAD_ASSESSMENT_DONE:
      return state.set('assessmentFormat', action.payload.standard);
      break;

    default:
      return state;
  }

};
Use 'standard' that is already provided.
Use 'standard' that is already provided.
