@ -60,7 +60,7 @@
}
</div>
@for (category of categories; track category.key) {
<div class="mb-4" [class.d-none]="category.rules?.length === 0">
<div [class.mb-4]="!$last || inactiveRules?.length > 0">
<h4 class="align-items-center d-flex m-0">
<span>{{ category.name }}</span>
@if (user?.subscription?.type === 'Basic') {
@ -107,7 +107,10 @@ export class GfXRayPageComponent {
.fetchPortfolioReport()
.pipe(takeUntilDestroyed(this.destroyRef))
.subscribe(({ xRay: { categories, statistics } }) => {
this.categories = categories;
this.categories = categories.filter(({ rules }) => {
return rules?.length > 0;
});
this.inactiveRules = this.mergeInactiveRules(categories);
this.statistics = statistics;