1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Fix React crying on machines without internet due to return undefined

This commit is contained in:
Michael Telatynski
2017-08-24 12:31:29 +01:00
parent 737a258944
commit ec6867dc8b

View File

@@ -75,7 +75,7 @@ export default class ManageIntegsButton extends React.Component {
}
render() {
let integrationsButton;
let integrationsButton = <div />;
let integrationsError;
if (this.scalarClient !== null) {
if (this.state.showIntegrationsError && this.state.scalarError) {