diff --git a/functions/src/market-close-emails.ts b/functions/src/market-close-emails.ts index 84efa190..09051248 100644 --- a/functions/src/market-close-emails.ts +++ b/functions/src/market-close-emails.ts @@ -31,7 +31,7 @@ async function sendMarketCloseEmails() { return undefined transaction.update(doc.ref, { - closeEmailsSent: contract.closeEmailsSent ?? 0 + 1, + closeEmailsSent: (contract.closeEmailsSent ?? 0) + 1, }) return contract