|
@@ -18,8 +18,8 @@ export function removeToken() {
|
|
|
const TenantKey = 'Tenant-Key'
|
|
|
|
|
|
export function getTenant() {
|
|
|
- const tenantInfo = JSON.parse(Cookies.get(TenantKey))
|
|
|
- return tenantInfo
|
|
|
+ const cookieTenant = Cookies.get(TenantKey)
|
|
|
+ return cookieTenant ? JSON.parse(cookieTenant) : null
|
|
|
}
|
|
|
|
|
|
export function setTenant(tenant) {
|