Conform more of the codebase to strictNullChecks (#10800)
This commit is contained in:
parent
adb29b38a3
commit
456c66db5b
46 changed files with 147 additions and 123 deletions
|
@ -556,8 +556,8 @@ export class MsisdnAuthEntry extends React.Component<IMsisdnAuthEntryProps, IMsi
|
|||
public static LOGIN_TYPE = AuthType.Msisdn;
|
||||
|
||||
private submitUrl?: string;
|
||||
private sid: string;
|
||||
private msisdn: string;
|
||||
private sid?: string;
|
||||
private msisdn?: string;
|
||||
|
||||
public constructor(props: IMsisdnAuthEntryProps) {
|
||||
super(props);
|
||||
|
@ -615,8 +615,8 @@ export class MsisdnAuthEntry extends React.Component<IMsisdnAuthEntryProps, IMsi
|
|||
});
|
||||
|
||||
try {
|
||||
let result;
|
||||
if (this.submitUrl) {
|
||||
let result: { success: boolean };
|
||||
if (this.submitUrl && this.sid) {
|
||||
result = await this.props.matrixClient.submitMsisdnTokenOtherUrl(
|
||||
this.submitUrl,
|
||||
this.sid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue