This commit is contained in:
github-actions[bot] 2022-10-10 18:34:34 +00:00 committed by GitHub
commit 5fa2afdc27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@ import { PortfolioMetrics, User } from './user'
import { DAY_MS } from './util/time' import { DAY_MS } from './util/time'
import { getBinaryCpmmBetInfo, getNewMultiBetInfo } from './new-bet' import { getBinaryCpmmBetInfo, getNewMultiBetInfo } from './new-bet'
import { getCpmmProbability } from './calculate-cpmm' import { getCpmmProbability } from './calculate-cpmm'
import { removeUndefinedProps } from './util/object'
const computeInvestmentValue = ( const computeInvestmentValue = (
bets: Bet[], bets: Bet[],
@ -275,11 +276,11 @@ export const calculateMetricsByContract = (
) )
} }
return { return removeUndefinedProps({
contractId: c.id, contractId: c.id,
...current, ...current,
from: periodMetrics, from: periodMetrics,
} })
}) })
} }