Skip to content

Commit

Permalink
Merge pull request #1 from EricBatlle/EricBatlle-patch-1
Browse files Browse the repository at this point in the history
Clean createThing button events to avoid calling it when user signsOut
  • Loading branch information
EricBatlle authored Jan 30, 2021
2 parents 607f348 + 16644f5 commit 40fefd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ auth.onAuthStateChanged(user => {
} else {
// Unsubscribe when the user signs out
unsubscribe && unsubscribe();
// Clean createThing button onClick events to avoid calling it when user signsOut
createThing.onClick = null;
}
});

0 comments on commit 40fefd9

Please sign in to comment.