mirror of
https://github.com/trezor/trezor-wallet
synced 2025-02-17 18:42:01 +00:00
Fix issue when empty passphrase couldn't be submitted after checking & unchecking "Show passphrase"
This commit is contained in:
parent
bfe6dae0a1
commit
a848e35b69
@ -241,11 +241,12 @@ export default class PinModal extends Component<Props, State> {
|
|||||||
visible: false,
|
visible: false,
|
||||||
});
|
});
|
||||||
if (this.passphraseRevisionInput) {
|
if (this.passphraseRevisionInput) {
|
||||||
this.passphraseRevisionInput.value = '';
|
const emptyPassphraseRevisionValue = '';
|
||||||
this.setState({
|
this.passphraseRevisionInput.value = emptyPassphraseRevisionValue;
|
||||||
passphraseRevision: '',
|
this.setState(previousState => ({
|
||||||
match: false,
|
passphraseRevision: emptyPassphraseRevisionValue,
|
||||||
});
|
match: emptyPassphraseRevisionValue === previousState.passphrase,
|
||||||
|
}));
|
||||||
this.passphraseRevisionInput.disabled = false;
|
this.passphraseRevisionInput.disabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user