Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
success: true,
};
case types.HOME_TEST_ERROR:
return {
...state,
loading: false,
error: true,
};
default:
return state;
}
}
export default persistReducer(persistConfig, home);
appData: action.payload,
};
case types.TEST_ERROR:
return {
...state,
loading: false,
error: true,
};
default:
return state;
}
}
export default persistReducer(persistConfig, app);