Skip to content

Commit e017841

Browse files
authored
Merge pull request #129 from terminusdb/fix_change_request
fix invitation
2 parents 046e17a + ee5074d commit e017841

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)