1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 16:38:08 +00:00

prevent passphrase modal enter if not match

This commit is contained in:
Szymon Lesisz 2018-05-16 15:53:55 +02:00
parent da467f0304
commit 227431fd3f

View File

@ -188,7 +188,9 @@ export default class PinModal extends Component<Props, State> {
submit = (empty: boolean = false): void => {
const { onPassphraseSubmit } = this.props.modalActions;
const { passphrase } = this.state;
const { passphrase, match } = this.state;
if (!match) return;
//this.passphraseInput.type = 'text';
// this.passphraseInput.style.display = 'none';