src/modules/markets/reducers/outcomes-data.js
Function parseOutcomes
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseOutcomes(newMarketsData, outcomesData) {
return Object.keys(newMarketsData).reduce((p, marketId) => {
const marketData = newMarketsData[marketId];
if (
Function default
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function(outcomesData = DEFAULT_STATE, action) {
switch (action.type) {
case UPDATE_MARKETS_DATA:
return {
...outcomesData,
Avoid too many return
statements within this function. Open
Open
return p;