1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Add button disabled when password is empty (#7451)

This commit is contained in:
Sunghee Lee 2019-11-18 02:34:17 +09:00 committed by Whymarrh Whitby
parent 7a6f2693fe
commit a6e387fddc

View File

@ -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'))
)