1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

replace ?. with &&

This commit is contained in:
Rory Powell 2021-09-29 17:55:08 +01:00
parent 93d4ee4aad
commit f089c20d60

View file

@ -67,7 +67,7 @@ async function saveUser(
// check root account users in account portal // check root account users in account portal
if (!env.SELF_HOSTED) { if (!env.SELF_HOSTED) {
const account = await accounts.getAccount(email) const account = await accounts.getAccount(email)
if (account?.verified) { if (account && account.verified) {
throw `Email address ${email} already in use.` throw `Email address ${email} already in use.`
} }
} }