refactor
This commit is contained in:
@@ -43,7 +43,7 @@ type AppAction =
|
||||
| { type: 'RESET_ERROR' }
|
||||
| { type: 'SET_TENANTS'; tenants: Tenant[] };
|
||||
|
||||
const storage = typeof window !== 'undefined' ? window.sessionStorage : null;
|
||||
const storage = window.sessionStorage;
|
||||
|
||||
const STORED_TOKEN = storage?.getItem('papercrate_token') ?? '';
|
||||
let STORED_TENANT: Tenant = null;
|
||||
|
||||
Reference in New Issue
Block a user