diff --git a/libs/ui/src/lib/benchmark/benchmark.component.html b/libs/ui/src/lib/benchmark/benchmark.component.html index 8867e1c9e..8e8a30202 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.html +++ b/libs/ui/src/lib/benchmark/benchmark.component.html @@ -66,11 +66,13 @@
- + @if (element?.performances?.allTimeHigh?.date) { + + }
@@ -83,18 +85,20 @@ from ATH - + @if (isNumber(element?.performances?.allTimeHigh?.performancePercent)) { + + } diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.ts index cc5815a0c..0c5e8854a 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.ts +++ b/libs/ui/src/lib/benchmark/benchmark.component.ts @@ -20,6 +20,7 @@ import { import { MatDialog } from '@angular/material/dialog'; import { MatTableModule } from '@angular/material/table'; import { ActivatedRoute, Router, RouterModule } from '@angular/router'; +import { isNumber } from 'lodash'; import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; import { Subject, takeUntil } from 'rxjs'; @@ -49,6 +50,7 @@ export class GfBenchmarkComponent implements OnChanges, OnDestroy { public displayedColumns = ['name', 'date', 'change', 'marketCondition']; public isLoading = true; + public isNumber = isNumber; public resolveMarketCondition = resolveMarketCondition; public translate = translate;