replace ?. with &&
This commit is contained in:
parent
93d4ee4aad
commit
f089c20d60
|
@ -67,7 +67,7 @@ async function saveUser(
|
|||
// check root account users in account portal
|
||||
if (!env.SELF_HOSTED) {
|
||||
const account = await accounts.getAccount(email)
|
||||
if (account?.verified) {
|
||||
if (account && account.verified) {
|
||||
throw `Email address ${email} already in use.`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue