Simplify another conditional

This commit is contained in:
Forrest Wolf 2022-06-28 13:46:25 -04:00
parent 6dead11c9a
commit 4a5e0feb4d

View File

@ -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]