From c017e8dcf4cefc40ef42432b10dff9b9b8e1096c Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 4 Aug 2016 10:51:31 +0100 Subject: [PATCH] Initialise _passwordField & delete stale comment --- src/components/views/dialogs/DeactivateAccountDialog.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/views/dialogs/DeactivateAccountDialog.js b/src/components/views/dialogs/DeactivateAccountDialog.js index e60f66737c..1c6de7ab40 100644 --- a/src/components/views/dialogs/DeactivateAccountDialog.js +++ b/src/components/views/dialogs/DeactivateAccountDialog.js @@ -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 ? : 'Deactivate Account'; const okEnabled = this.state.confirmButtonEnabled && !this.state.busy;