GH-2551 - Update correct routes after welcome page (#2644)

* update correct routes after welcome page

* fix unit tests
This commit is contained in:
Scott Bishel 2022-03-29 02:16:09 -06:00 committed by GitHub
parent c336f06f19
commit f7fe5df8e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,8 +48,11 @@ const WelcomePage = () => {
history.replace(queryString.get('r')!)
return
}
history.replace(`/team/${currentTeam?.id}`)
if (currentTeam) {
history.replace(`/team/${currentTeam?.id}`)
} else {
history.replace('/')
}
}
const skipTour = async () => {