Skip to content

Commit

Permalink
Add button disabled when password is empty (#7451)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunghee2 authored and whymarrh committed Nov 17, 2019
1 parent 7a6f269 commit a6e387f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/app/components/app/modals/export-private-key-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ ExportPrivateKeyModal.prototype.renderButtons = function (privateKey, address, h
type: 'secondary',
large: true,
className: 'export-private-key__button',
disabled: !this.state.password,
onClick: () => this.exportAccountAndGetPrivateKey(this.state.password, address),
}, this.context.t('confirm'))
)
Expand Down

0 comments on commit a6e387f

Please sign in to comment.