Simplify another conditional
This commit is contained in:
parent
6dead11c9a
commit
4a5e0feb4d
|
@ -123,7 +123,7 @@ export const sendWelcomeEmail = async (
|
|||
user: User,
|
||||
privateUser: PrivateUser
|
||||
) => {
|
||||
if (!privateUser || !privateUser.email) return
|
||||
if (!privateUser?.email) return
|
||||
|
||||
const { name, id: userId } = user
|
||||
const firstName = name.split(' ')[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user