mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 18:58:08 +00:00
passphrase modal fix
This commit is contained in:
parent
c1c6ada348
commit
6be0ae37ea
@ -91,8 +91,7 @@ class Passphrase extends PureComponent<Props, State> {
|
||||
super(props);
|
||||
const { device, selectedDevice } = props;
|
||||
|
||||
// Check if this device is already known
|
||||
// if device is already known then only one input is presented
|
||||
// if device is already remembered then only one input is presented
|
||||
let deviceLabel = device.label;
|
||||
let shouldShowSingleInput = false;
|
||||
if (selectedDevice && selectedDevice.path === device.path) {
|
||||
@ -171,7 +170,7 @@ class Passphrase extends PureComponent<Props, State> {
|
||||
this.setState(previousState => ({
|
||||
isPassphraseHidden: !previousState.isPassphraseHidden,
|
||||
passphraseInputValue: previousState.passphraseInputValue,
|
||||
passphraseCheckInputValue: previousState.passphraseCheckInputValue,
|
||||
passphraseCheckInputValue: previousState.passphraseInputValue,
|
||||
doPassphraseInputsMatch: match,
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user