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