1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

Review feedback - shortcut user?.tenantId !== tenantId

This commit is contained in:
Rory Powell 2021-09-29 17:13:29 +01:00
parent 0dfae96e52
commit 8de6cd3585

View file

@ -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 {