import { GET_TONE } from '../actions/index';

export default function (state = [], action) {
  switch (action.type) {
    case GET_TONE:
      return action.payload.data;

    default:
      return state;
  }
}

import { GET_TONE } from '../actions/index';

export default function (state = [], action) {
  switch (action.type) {
    case GET_TONE:
      if (action.payload.status === 200) {
        return action.payload.data;
      }
      return state;
    default:
      return state;
  }
}

Add conditional to tone reducer
Add conditional to tone reducer
