1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 10:48:22 +00:00

fix condition

This commit is contained in:
slowbackspace 2019-04-30 10:45:59 +02:00
parent 93c9466a52
commit b155406f47

View File

@ -187,7 +187,7 @@ class Passphrase extends PureComponent<Props, State> {
handleKeyPress(event: KeyboardEvent) { handleKeyPress(event: KeyboardEvent) {
if (event.key === 'Enter') { if (event.key === 'Enter') {
event.preventDefault(); event.preventDefault();
if (this.state.doPassphraseInputsMatch && this.state.byteLength < 50) { if (this.state.doPassphraseInputsMatch && this.state.byteLength <= 50) {
this.submitPassphrase(); this.submitPassphrase();
} }
} }