mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
fix null check
This commit is contained in:
@@ -393,7 +393,7 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
: firstValueFrom(this.settingsService.settings$).then(
|
: firstValueFrom(this.settingsService.settings$).then(
|
||||||
(settings: AccountSettingsSettings) => {
|
(settings: AccountSettingsSettings) => {
|
||||||
let matches: any[] = [];
|
let matches: any[] = [];
|
||||||
settings.equivalentDomains.forEach((eqDomain: any) => {
|
settings.equivalentDomains?.forEach((eqDomain: any) => {
|
||||||
if (eqDomain.length && eqDomain.indexOf(domain) >= 0) {
|
if (eqDomain.length && eqDomain.indexOf(domain) >= 0) {
|
||||||
matches = matches.concat(eqDomain);
|
matches = matches.concat(eqDomain);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user