1
0
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:
✨ Audrey ✨
2025-04-30 12:54:45 -04:00
parent 4e5c2934e6
commit d8e82e2ca4
2 changed files with 7 additions and 3 deletions

View File

@@ -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);

View File

@@ -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