src/modules/market-charts/containers/market-outcome-charts.js
Function mapStateToProps
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const mapStateToProps = (state, ownProps) => {
const market = selectMarket(ownProps.marketId);
const userOrders =
state.orderBooks[ownProps.marketId] &&
state.orderBooks[ownProps.marketId][ownProps.selectedOutcome];