Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix: correct syntax in code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Sep 14, 2023
1 parent c08bdd4 commit 6e8732d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ Inside the `<FirebaseApp>` tag, we'll handle everything including our sign-in ha
error = '';
const { email, password } = event.detail;
let valids = admins.map(admin => admin.email);
if (!valids.includes(email)) return (error = 'You're not admin.');
if (!valids.includes(email)) return (error = "You're not admin.");
auth.signInWithEmailAndPassword(email, password).catch(function(err) {
if (err.code === 'auth/wrong-password') error = 'Wrong password.';
else error = err.message;
Expand Down

0 comments on commit 6e8732d

Please sign in to comment.