Apply strictNullChecks
to src/components/auth/*
(#10484
* Apply `strictNullChecks` to `src/components/auth/*` * fix * strict types
This commit is contained in:
parent
af151700c9
commit
f152613f83
8 changed files with 25 additions and 17 deletions
|
@ -200,7 +200,7 @@ export function attemptTokenLogin(
|
|||
}
|
||||
|
||||
const homeserver = localStorage.getItem(SSO_HOMESERVER_URL_KEY);
|
||||
const identityServer = localStorage.getItem(SSO_ID_SERVER_URL_KEY);
|
||||
const identityServer = localStorage.getItem(SSO_ID_SERVER_URL_KEY) ?? undefined;
|
||||
if (!homeserver) {
|
||||
logger.warn("Cannot log in with token: can't determine HS URL to use");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue