From f3324ae7b75bab58015e7526dbf84ea420303342 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Mon, 12 Sep 2022 10:12:06 -0600 Subject: [PATCH] Show 0 as invested or payout --- functions/src/create-notification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,