Refactor + improve test coverage for QR login (#9525)

This commit is contained in:
Hugh Nimmo-Smith 2022-11-02 11:51:20 +01:00 committed by GitHub
parent 9096bd82d6
commit f05cc5d8f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 1604 additions and 774 deletions

View file

@ -32,7 +32,7 @@ export default class LoginWithQRSection extends React.Component<IProps> {
super(props);
}
public render(): JSX.Element {
public render(): JSX.Element | null {
const msc3882Supported = !!this.props.versions?.unstable_features?.['org.matrix.msc3882'];
const msc3886Supported = !!this.props.versions?.unstable_features?.['org.matrix.msc3886'];