diff --git a/functions/src/market-close-emails.ts b/functions/src/market-close-emails.ts index 83caca89..6b490e9d 100644 --- a/functions/src/market-close-emails.ts +++ b/functions/src/market-close-emails.ts @@ -26,6 +26,7 @@ async function sendMarketCloseEmails() { if ( contract.resolution || (contract.closeEmailsSent ?? 0) >= 1 || + contract.closeTime === undefined || (contract.closeTime ?? 0) > Date.now() ) return undefined