diff --git a/functions/src/create-notification.ts b/functions/src/create-notification.ts index 1c251e33..7601789e 100644 --- a/functions/src/create-notification.ts +++ b/functions/src/create-notification.ts @@ -316,8 +316,8 @@ export const createCommentOrAnswerOrUpdatedContractNotification = async ( await sendMarketResolutionEmail( reason, privateUser, - resolutionData.userInvestments[userId], - resolutionData.userPayouts[userId], + resolutionData.userInvestments[userId] ?? 0, + resolutionData.userPayouts[userId] ?? 0, sourceUser, resolutionData.creatorPayout, sourceContract,