You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Initialise _passwordField & delete stale comment
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user