Simplify another conditional

This commit is contained in:
Forrest Wolf 2022-06-28 13:24:12 -04:00
parent a56357430d
commit 926688ae50

View File

@ -29,9 +29,8 @@ export const sendMarketResolutionEmail = async (
) => { ) => {
const privateUser = await getPrivateUser(userId) const privateUser = await getPrivateUser(userId)
if ( if (
!privateUser || !privateUser?.email ||
privateUser.unsubscribedFromResolutionEmails || privateUser.unsubscribedFromResolutionEmails
!privateUser.email
) )
return return
@ -207,9 +206,8 @@ export const sendMarketCloseEmail = async (
contract: Contract contract: Contract
) => { ) => {
if ( if (
!privateUser || !privateUser?.email ||
privateUser.unsubscribedFromResolutionEmails || privateUser.unsubscribedFromResolutionEmails
!privateUser.email
) )
return return