diff --git a/common/calculate-dpm.ts b/common/calculate-dpm.ts index 9c9de420..efd0268d 100644 --- a/common/calculate-dpm.ts +++ b/common/calculate-dpm.ts @@ -260,7 +260,7 @@ export function calculateStandardDpmPayout( if (!isNumeric && betOutcome !== outcome) return 0 const shares = isNumeric - ? (bet as NumericBet).allOutcomeShares[outcome] + ? ((bet as NumericBet).allOutcomeShares ?? {})[outcome] : bet.shares if (!shares) return 0