src/modules/account/selectors/core-stats.js
Function createPeriodPLSelector
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(accountTrades, blockchain, outcomesData, currentTimestamp) => {
if (!accountTrades || !blockchain) return null;
const periodDate = new Date(
currentTimestamp - period * 24 * 60 * 60 * 1000