1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

set default values for navButtons$ observable (#14859)

This commit is contained in:
Jordan Aasen
2025-05-20 13:36:10 -07:00
committed by GitHub
parent d7c936e1ea
commit 94815085ed

View File

@@ -1,5 +1,5 @@
import { Component } from "@angular/core";
import { combineLatest, map, Observable, switchMap } from "rxjs";
import { combineLatest, map, Observable, startWith, switchMap } from "rxjs";
import { NudgesService } from "@bitwarden/angular/vault";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
@@ -23,6 +23,7 @@ export class TabsV2Component {
this.configService.getFeatureFlag$(FeatureFlag.PM8851_BrowserOnboardingNudge),
this.hasActiveBadges$,
]).pipe(
startWith([false, false]),
map(([onboardingFeatureEnabled, hasBadges]) => {
return [
{