src/modules/positions/actions/load-account-trades.js
Function loadUserTradingHistory
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function loadUserTradingHistory(options = {}, callback = logError) {
return (dispatch, getState) => {
const { universe, loginAccount } = getState();
if (loginAccount.address == null) return callback(null);
if (options.marketId == null) dispatch(clearAccountTrades());