sendMarketCloseEmails: check undefined
This commit is contained in:
parent
dcbdc66df5
commit
1036c2df0d
|
@ -26,6 +26,7 @@ async function sendMarketCloseEmails() {
|
|||
if (
|
||||
contract.resolution ||
|
||||
(contract.closeEmailsSent ?? 0) >= 1 ||
|
||||
contract.closeTime === undefined ||
|
||||
(contract.closeTime ?? 0) > Date.now()
|
||||
)
|
||||
return undefined
|
||||
|
|
Loading…
Reference in New Issue
Block a user