Skip to content

Commit

Permalink
fix: missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhadwen committed Sep 11, 2020
1 parent f07e57e commit 8f778eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@
"no-debugger": 0,
"no-alert": 0,
"no-unused-vars": [
1,
{
"ignoreSiblings": true,
"argsIgnorePattern": "res|next|^err"
}
1
],
"prefer-const": [
"error",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signin.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function SignIn() {
const handleSignin = (event) => {
event.preventDefault();

firebase
return firebase
.auth()
.signInWithEmailAndPassword(emailAddress, password)
.then(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function SignUp() {
const handleSignup = (event) => {
event.preventDefault();

firebase
return firebase
.auth()
.createUserWithEmailAndPassword(emailAddress, password)
.then((result) =>
Expand Down

0 comments on commit 8f778eb

Please sign in to comment.