Simplify another conditional
This commit is contained in:
parent
a56357430d
commit
926688ae50
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user