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
|
@ -45,7 +45,7 @@ interface IState {
|
|||
* On success, `onFinished(true)` is called.
|
||||
*/
|
||||
export default class SetEmailDialog extends React.Component<IProps, IState> {
|
||||
private addThreepid: AddThreepid;
|
||||
private addThreepid?: AddThreepid;
|
||||
|
||||
public constructor(props: IProps) {
|
||||
super(props);
|
||||
|
@ -109,7 +109,7 @@ export default class SetEmailDialog extends React.Component<IProps, IState> {
|
|||
};
|
||||
|
||||
private verifyEmailAddress(): void {
|
||||
this.addThreepid.checkEmailLinkClicked().then(
|
||||
this.addThreepid?.checkEmailLinkClicked().then(
|
||||
() => {
|
||||
this.props.onFinished(true);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue