Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
firebase auth.currentUser.email error/bug?

clearly (jimmy22@mail.com === "benjamin@icloud.com" || "lame@mail.com") should return false

so why is it printing "email in first : jimmy22@mail.com"

when it should print "email was : jimmy22@mail.com"

code below

let email = auth.currentUser.email


if(email === "benjamin@icloud.com" || "lame@mail.com") {
    alert("email in first : " + auth.currentUser.email )
    checkUserIsNotAlreadyInGame() 
    return
        } else {
            alert("email was :" + auth.currentUser.email )
            return
        }

prints "email in first : jimmy22@mail.com"

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

your expression will always evaluate to true because it falls to the "lame@mail.com" string which always evaluates to true in the condition.

change your condition to the following:

if(email === "benjamin@icloud.com" || email === "lame@mail.com")

then you'd get the expected result

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!