diff --git a/src/components/views/elements/ManageIntegsButton.js b/src/components/views/elements/ManageIntegsButton.js index 158efd579f..8ff0631ce2 100644 --- a/src/components/views/elements/ManageIntegsButton.js +++ b/src/components/views/elements/ManageIntegsButton.js @@ -30,7 +30,7 @@ export default class ManageIntegsButton extends React.Component { super(props); this.state = { - scalar_error: null, + scalarError: null, showIntegrationsError: false, }; @@ -47,7 +47,7 @@ export default class ManageIntegsButton extends React.Component { this.scalarClient.connect().done(() => { this.forceUpdate(); }, (err) => { - this.setState({ scalar_error: err}); + this.setState({ scalarError: err}); }); } } @@ -82,8 +82,8 @@ export default class ManageIntegsButton extends React.Component { let integrationsButton; let integrationsError; if (this.scalarClient !== null) { - if (this.state.showIntegrationsError && this.state.scalar_error) { - console.error(this.state.scalar_error); + if (this.state.showIntegrationsError && this.state.scalarError) { + console.error(this.state.scalarError); integrationsError = ( { _t('Could not connect to the integration server') } @@ -97,7 +97,7 @@ export default class ManageIntegsButton extends React.Component { ); - } else if (this.state.scalar_error) { + } else if (this.state.scalarError) { integrationsButton = (