You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// User will normally be redirected to the dashboard if the user is logged in, but if user clicks the icon in the top left corner while on the dashboard, they will not be redirected.
59
+
try{
60
+
if(firebaseUser&&location.state.redirect){
61
+
/* Whether or not the user should be redirected to the dashboard is stored in location.state.redirect, but if the user opens a link straight
62
+
to the landing page, location.state.redirect will be undefined, causing a typeerror, this try catch statements accounts for that */
0 commit comments