You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-01 13:11:10 +03:00
Conform more of the codebase to strictNullChecks (#10800)
This commit is contained in:
committed by
GitHub
parent
adb29b38a3
commit
456c66db5b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user