From 5768b8a386abf5e34eee55eb98acc1e3aee51cce Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Thu, 19 Apr 2018 13:09:02 +0200 Subject: [PATCH] Fixes disabled create wallet button Resolves #13227 Auditors: Test Plan: --- .../components/preferences/payment/enabledContent.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/renderer/components/preferences/payment/enabledContent.js b/app/renderer/components/preferences/payment/enabledContent.js index 1e15f96d07a..2b682facafa 100644 --- a/app/renderer/components/preferences/payment/enabledContent.js +++ b/app/renderer/components/preferences/payment/enabledContent.js @@ -61,6 +61,12 @@ class EnabledContent extends ImmutableComponent { ? this.props.showOverlay.bind(this, 'addFunds') : (ledgerData.get('creating') ? () => {} : this.createWallet()) + let buttonDisabled = !ledgerData.get('created') + + if (buttonText === 'createWallet') { + buttonDisabled = false + } + return