Review feedback - shortcut user?.tenantId !== tenantId
This commit is contained in:
parent
a299e30556
commit
2ceca6b4fb
|
@ -17,7 +17,7 @@
|
|||
|
||||
if (!tenantId.includes("localhost:")) {
|
||||
// user doesn't have permission to access this tenant - kick them out
|
||||
if (user && user.tenantId && user.tenantId !== tenantId) {
|
||||
if (user?.tenantId !== tenantId) {
|
||||
await auth.logout()
|
||||
await auth.setOrganisation(null)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue