From 5ad24057adaed90a23d990f2a14090285a4362c0 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Mon, 7 Nov 2022 13:38:44 +0200 Subject: [PATCH] [Aggregator]: home.component.ts: [Bug fix] Fixed checks for numbers sections - check count, not number (it is rounded in K/M...) --- src/app/home/home.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 1d7eba1..d84565b 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -358,26 +358,26 @@ export class HomeComponent { } public get hasPublications() { - return this.showPublications && this.numbers.publicationsSize && this.numbers.publicationsSize.number >= this.numbersLimit; + return this.showPublications && this.numbers.publicationsSize && this.numbers.publicationsSize.count >= this.numbersLimit; } public get hasDatasets() { - return this.showDatasets && this.numbers.datasetsSize && this.numbers.datasetsSize.number >= this.numbersLimit; + return this.showDatasets && this.numbers.datasetsSize && this.numbers.datasetsSize.count >= this.numbersLimit; } public get hasSoftware() { - return this.showSoftware && this.numbers.softwareSize && this.numbers.softwareSize.number >= this.numbersLimit; + return this.showSoftware && this.numbers.softwareSize && this.numbers.softwareSize.count >= this.numbersLimit; } public get hasDatasources() { - return this.showDataProviders && this.numbers.datasourcesSize && this.numbers.datasourcesSize.number >= this.numbersLimit; + return this.showDataProviders && this.numbers.datasourcesSize && this.numbers.datasourcesSize.count >= this.numbersLimit; } public get hasProjects() { - return this.showProjects && this.numbers.projectsSize && this.numbers.projectsSize.number >= this.numbersLimit; + return this.showProjects && this.numbers.projectsSize && this.numbers.projectsSize.count >= this.numbersLimit; } public get hasOrganizations() { - return this.showOrganizations && this.numbers.organizationsSize && this.numbers.organizationsSize.number >= this.numbersLimit; + return this.showOrganizations && this.numbers.organizationsSize && this.numbers.organizationsSize.count >= this.numbersLimit; } }