1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-14 12:29:31 +00:00

disabled sign and verify buttons when device is not connected

This commit is contained in:
slowbackspace 2019-03-29 10:51:02 +01:00
parent f60ddec70f
commit b2a5d040b5

View File

@ -140,6 +140,7 @@ class SignVerify extends Component<Props> {
<FormattedMessage {...l10nCommonMessages.TR_CLEAR} />
</StyledButton>
<StyledButton
isDisabled={!device.connected}
onClick={() =>
signVerifyActions.sign(account.accountPath, signMessage)
}
@ -194,7 +195,7 @@ class SignVerify extends Component<Props> {
<FormattedMessage {...l10nCommonMessages.TR_CLEAR} />
</StyledButton>
<StyledButton
isDisabled={!!verifyAddressError}
isDisabled={!!verifyAddressError || !device.connected}
onClick={() => {
if (errors.length <= 0) {
signVerifyActions.verify(