Initialise _passwordField & delete stale comment

pull/21833/head
David Baker 2016-08-04 10:51:31 +01:00
parent e144da75e3
commit c017e8dcf4
1 changed files with 1 additions and 3 deletions

View File

@ -25,7 +25,7 @@ export default class DeactivateAccountDialog extends React.Component {
constructor(props, context) { constructor(props, context) {
super(props, context); super(props, context);
this._passwordField; this._passwordField = null;
this._onOk = this._onOk.bind(this); this._onOk = this._onOk.bind(this);
this._onCancel = this._onCancel.bind(this); this._onCancel = this._onCancel.bind(this);
@ -85,8 +85,6 @@ export default class DeactivateAccountDialog extends React.Component {
passwordBoxClass = 'error'; passwordBoxClass = 'error';
} }
// I would use a spinner here but that causes the button to be rendered
// slightly higher than the other one
const okLabel = this.state.busy ? <Loader /> : 'Deactivate Account'; const okLabel = this.state.busy ? <Loader /> : 'Deactivate Account';
const okEnabled = this.state.confirmButtonEnabled && !this.state.busy; const okEnabled = this.state.confirmButtonEnabled && !this.state.busy;