src/modules/orders/actions/load-one-outcome-bids-or-asks.js
Function loadOneOutcomeBidsOrAsks
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => (dispatch, getState) => {
const { marketsData } = getState();
if (marketId == null || outcome == null || orderTypeLabel == null) {
return callback(
`must specify market ID, outcome, and order type: ${marketId} ${outcome} ${orderTypeLabel}`