mirror of
https://github.com/bitwarden/browser
synced 2026-01-27 23:03:45 +00:00
add optional chaining to username comparison of existing login ciphers
This commit is contained in:
@@ -724,7 +724,7 @@ export default class NotificationBackground {
|
||||
const ciphersByInputMatchCategory = ciphersForURL.reduce(
|
||||
(acc, { id, login }) => {
|
||||
const usernameInputMatchesCipher =
|
||||
usernameFieldHasValue && login.username.toLowerCase() === normalizedUsername;
|
||||
usernameFieldHasValue && login.username?.toLowerCase() === normalizedUsername;
|
||||
const passwordInputMatchesCipher =
|
||||
currentPasswordFieldHasValue && login.password === currentPasswordFieldValue;
|
||||
const newPasswordInputMatchesCipher =
|
||||
|
||||
Reference in New Issue
Block a user