Probable fix to NaN invested in email

This commit is contained in:
James Grugett 2022-03-16 23:56:59 -05:00
parent 3009c6cc01
commit 50c4866958

View File

@ -174,7 +174,7 @@ const sendResolutionEmails = async (
...nonWinners.map((userId) => [userId, 0] as const),
].map(([userId, payout]) => ({
userId,
investment: investedByUser[userId],
investment: investedByUser[userId] ?? 0,
payout,
}))