diff --git a/src/js/ui.js b/src/js/ui.js index a6b6e8274..360fecda4 100644 --- a/src/js/ui.js +++ b/src/js/ui.js @@ -114,6 +114,9 @@ export function changePage(page) { let activePage = $(".page.active"); $(".page").removeClass("active"); $("#wordsInput").focusout(); + console.log( + `changing to page ${page}, current active is ${activePage[0].classList}` + ); if (page == "test" || page == "") { setPageTransition(true); swapElements( @@ -162,6 +165,9 @@ export function changePage(page) { SignOutButton.hide(); } else if (page == "account") { if (!firebase.auth().currentUser) { + console.log( + `current user is ${firebase.auth().currentUser}, going back to login` + ); changePage("login"); } else { setPageTransition(true); @@ -199,6 +205,7 @@ export function changePage(page) { SignOutButton.hide(); } } + console.log("change page finished"); } if (firebase.app().options.projectId === "monkey-type-dev-67af4") {