mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-09 01:28:46 +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);
|
super(props);
|
||||||
const { device, selectedDevice } = props;
|
const { device, selectedDevice } = props;
|
||||||
|
|
||||||
// Check if this device is already known
|
// if device is already remembered then only one input is presented
|
||||||
// if device is already known then only one input is presented
|
|
||||||
let deviceLabel = device.label;
|
let deviceLabel = device.label;
|
||||||
let shouldShowSingleInput = false;
|
let shouldShowSingleInput = false;
|
||||||
if (selectedDevice && selectedDevice.path === device.path) {
|
if (selectedDevice && selectedDevice.path === device.path) {
|
||||||
@ -171,7 +170,7 @@ class Passphrase extends PureComponent<Props, State> {
|
|||||||
this.setState(previousState => ({
|
this.setState(previousState => ({
|
||||||
isPassphraseHidden: !previousState.isPassphraseHidden,
|
isPassphraseHidden: !previousState.isPassphraseHidden,
|
||||||
passphraseInputValue: previousState.passphraseInputValue,
|
passphraseInputValue: previousState.passphraseInputValue,
|
||||||
passphraseCheckInputValue: previousState.passphraseCheckInputValue,
|
passphraseCheckInputValue: previousState.passphraseInputValue,
|
||||||
doPassphraseInputsMatch: match,
|
doPassphraseInputsMatch: match,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user