mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Initialise _passwordField & delete stale comment
This commit is contained in:
parent
e144da75e3
commit
c017e8dcf4
1 changed files with 1 additions and 3 deletions
|
@ -25,7 +25,7 @@ export default class DeactivateAccountDialog extends React.Component {
|
|||
constructor(props, context) {
|
||||
super(props, context);
|
||||
|
||||
this._passwordField;
|
||||
this._passwordField = null;
|
||||
|
||||
this._onOk = this._onOk.bind(this);
|
||||
this._onCancel = this._onCancel.bind(this);
|
||||
|
@ -85,8 +85,6 @@ export default class DeactivateAccountDialog extends React.Component {
|
|||
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 okEnabled = this.state.confirmButtonEnabled && !this.state.busy;
|
||||
|
||||
|
|
Loading…
Reference in a new issue