UI: Refactoring after review

This commit is contained in:
Vladyslav_Prykhodko 2025-05-16 16:41:52 +03:00
parent 8b14e72f8c
commit 9922fba7a1

View File

@ -47,6 +47,7 @@ export class UnitService {
constructor(private translate: TranslateService, constructor(private translate: TranslateService,
private store: Store<AppState>) { private store: Store<AppState>) {
this.converter = getUnitConverter(this.translate);
this.translate.onLangChange.pipe( this.translate.onLangChange.pipe(
takeUntilDestroyed() takeUntilDestroyed()
).subscribe(() => { ).subscribe(() => {