Browse Source

replace ?. with &&

gh-pages
Rory Powell 5 years ago
parent
commit
0734eb0ce7
  1. 2
      packages/worker/src/api/controllers/global/users.js

2
packages/worker/src/api/controllers/global/users.js

@ -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…
Cancel
Save