Skip to content

Commit ee5074d

Browse files
committed
fix invitation
1 parent 1df1ba6 commit ee5074d

File tree

1 file changed

+2
-3
lines changed
  • packages/tdb-dashboard/src

1 file changed

+2
-3
lines changed

packages/tdb-dashboard/src/App.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ export function App (props){
3737
// we have this loading only in terminusX, it is auth0 information/login loading
3838
const {loading} = clientUser
3939

40-
if (clientUser.firstLogin === true) {
40+
if (clientUser.firstLogin === true && window.location.pathname.indexOf("/invite/") === -1) {
4141
clientUser.firstLogin = false
42-
43-
// navigate(`/${PLANS}`)
42+
//only if the user is not invited in a team
4443
window.location.replace(`/${PLANS}`)
4544

4645
}

0 commit comments

Comments
 (0)