From f7751bec56f1ec37dea2a315c2d2cd5d44adb4f3 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 23 Nov 2018 17:36:06 +0100 Subject: [PATCH] passphrase modal fix --- src/components/modals/passphrase/Passphrase/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/modals/passphrase/Passphrase/index.js b/src/components/modals/passphrase/Passphrase/index.js index 46f69841..50ad67b4 100644 --- a/src/components/modals/passphrase/Passphrase/index.js +++ b/src/components/modals/passphrase/Passphrase/index.js @@ -91,8 +91,7 @@ class Passphrase extends PureComponent { 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 { this.setState(previousState => ({ isPassphraseHidden: !previousState.isPassphraseHidden, passphraseInputValue: previousState.passphraseInputValue, - passphraseCheckInputValue: previousState.passphraseCheckInputValue, + passphraseCheckInputValue: previousState.passphraseInputValue, doPassphraseInputsMatch: match, })); }