Skip to content

Commit 7235b80

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2458 Updated privacy-content.component.ts
1 parent 279a202 commit 7235b80

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/app/info/privacy/privacy-content/privacy-content.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from '@ngx-translate/core';
1515
import {
1616
BehaviorSubject,
17+
combineLatest,
1718
Subscription,
1819
} from 'rxjs';
1920

@@ -54,8 +55,10 @@ export class PrivacyContentComponent implements OnInit, OnDestroy {
5455

5556
ngOnInit(): void {
5657
this.subs.push(
57-
this.siteService.find().subscribe((site) => {
58-
const langCode = this.localeService.getCurrentLanguageCode();
58+
combineLatest([
59+
this.siteService.find(),
60+
this.localeService.getCurrentLanguageCode(),
61+
]).subscribe(([site, langCode]) => {
5962
const fallbackLangCode = 'en';
6063

6164
const textArray = site?.metadataAsList.filter((metadata) =>

0 commit comments

Comments
 (0)