mirror of
https://github.com/bitwarden/browser
synced 2026-02-08 20:50:28 +00:00
fix forwarder to random word navigation bug
This commit is contained in:
@@ -437,10 +437,12 @@ export class CredentialGeneratorComponent implements OnInit, OnChanges, OnDestro
|
||||
preferences
|
||||
.pipe(
|
||||
map(({ email, username, password }) => {
|
||||
const forwarderPref = isForwarderExtensionId(email.algorithm) ? email : null;
|
||||
const usernamePref = email.updated > username.updated ? email : username;
|
||||
const forwarderPref = isForwarderExtensionId(usernamePref.algorithm)
|
||||
? usernamePref
|
||||
: null;
|
||||
|
||||
// inject drilldown flags
|
||||
// inject drill-down flags
|
||||
const forwarderNav = !forwarderPref
|
||||
? NONE_SELECTED
|
||||
: JSON.stringify(forwarderPref.algorithm);
|
||||
|
||||
@@ -394,8 +394,10 @@ export class UsernameGeneratorComponent implements OnInit, OnChanges, OnDestroy
|
||||
preferences
|
||||
.pipe(
|
||||
map(({ email, username }) => {
|
||||
const forwarderPref = isForwarderExtensionId(email.algorithm) ? email : null;
|
||||
const usernamePref = email.updated > username.updated ? email : username;
|
||||
const forwarderPref = isForwarderExtensionId(usernamePref.algorithm)
|
||||
? usernamePref
|
||||
: null;
|
||||
|
||||
// inject drilldown flags
|
||||
const forwarderNav = !forwarderPref
|
||||
|
||||
Reference in New Issue
Block a user