Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #13867 from NejcZdovc/fix/#13227-create
Browse files Browse the repository at this point in the history
Fixes disabled create wallet button
  • Loading branch information
NejcZdovc committed Apr 23, 2018
1 parent a3c4186 commit 82f33de
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div>
<BrowserButton
primaryColor
Expand All @@ -69,7 +75,7 @@ class EnabledContent extends ImmutableComponent {
test2Id={'addFunds'}
l10nId={buttonText}
onClick={onButtonClick.bind(this)}
disabled={!ledgerData.get('created')}
disabled={buttonDisabled}
/>
<a className={cx({
[globalStyles.appIcons.question]: true,
Expand Down

0 comments on commit 82f33de

Please sign in to comment.