8000 Fix Sign out and then sign in screen does not respond. (database/) (#86) · iambryansanders/quickstart-js@6be808c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6be808c

Browse files
gengshuonicolasgarnier
authored andcommitted
Fix Sign out and then sign in screen does not respond. (database/) (firebase#86)
* Fix Sign out and then sign in screen does not respond. (database/) * Move "Set currentUID to null" at L.356.
1 parent 55ce01e commit 6be808c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

database/scripts/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ function onAuthStateChanged(user) {
353353
writeUserData(user.uid, user.displayName, user.email, user.photoURL);
354354
startDatabaseQueries();
355355
} else {
356+
// Set currentUID to null.
357+
currentUID = null;
356358
// Display the splash page where you can sign-in.
357359
splashPage.style.display = '';
358360
}

0 commit comments

Comments
 (0)
0