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
* fix Announcements
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix redirect
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix redirect
* Fix redirect again
* Document try-catch
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
// 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