Probable fix to NaN invested in email
This commit is contained in:
parent
3009c6cc01
commit
50c4866958
|
@ -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,
|
||||
}))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user