diff --git a/src/app/globalsearch/globalsearch.component.html b/src/app/globalsearch/globalsearch.component.html
index dabbc11a..2e78099e 100644
--- a/src/app/globalsearch/globalsearch.component.html
+++ b/src/app/globalsearch/globalsearch.component.html
@@ -43,13 +43,8 @@
FAANG Global Search
}
-
-
- {{ hits }} {{ changeKey(key) }}
-
-
- {{ hits }} {{ key === 'analysis' ? 'analyses' : changeKey(key) + 's' }}
-
+
+ {{ hits }} {{ hits === 1 ? changeKey(key) : (key === 'analysis' ? 'analyses' : changeKey(key) + 's') }}
@if (searchTermsBool(item)) {
diff --git a/src/app/globalsearch/globalsearch.component.ts b/src/app/globalsearch/globalsearch.component.ts
index a2038b8a..ded655a0 100644
--- a/src/app/globalsearch/globalsearch.component.ts
+++ b/src/app/globalsearch/globalsearch.component.ts
@@ -64,12 +64,13 @@ export class GlobalSearchComponent implements OnInit {
this.dataService.getGSearchData(this.searchText).subscribe(json_data => {
this.showSpinner = false;
this.jsonData = json_data;
+ this.showResults = true;
});
}, time);
} else {
this.jsonData = {};
+ this.showResults = false;
}
- this.showResults = true;
void this.router.navigate([], {
relativeTo: this.route,
queryParams: { searchText: this.searchText },