Skip to content

Commit

Permalink
update test and change const cname
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Nov 15, 2024
1 parent 20eb4e6 commit 013f23f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import { BehaviorSubject, map, Observable, Subject, Subscription } from 'rxjs';
styleUrl: 'okr-tangram.component.scss',
})
export class OkrTangramComponent {
private readonly defaultTrianglesSrc = 'assets/images/empty.svg';
private readonly DEFAULT_TRIANGLE_SRC = 'assets/images/empty.svg';
trianglesSrc$ = new Observable<string>();

constructor(private readonly configService: ConfigService) {
this.trianglesSrc$ = this.configService.config$.pipe(map((config) => config.triangles || this.defaultTrianglesSrc));
this.trianglesSrc$ = this.configService.config$.pipe(
map((config) => config.triangles || this.DEFAULT_TRIANGLE_SRC),
);
}
}

0 comments on commit 013f23f

Please sign in to comment.