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:
parent
f60ddec70f
commit
b2a5d040b5
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user