diff --git a/src/app/_shared/components/card-text/card-text.component.ts b/src/app/_shared/components/card-text/card-text.component.ts index b922f24..37af430 100644 --- a/src/app/_shared/components/card-text/card-text.component.ts +++ b/src/app/_shared/components/card-text/card-text.component.ts @@ -23,7 +23,7 @@ export class CardTextComponent { } private fixText(): string { - return this.text().split('+').join('\\+').split('-').join('\\-'); + return (this.text() ?? '').split('+').join('\\+').split('-').join('\\-'); } private getCustomRenderer(): marked.Renderer { diff --git a/src/app/_shared/components/search-cards/search-cards.component.html b/src/app/_shared/components/search-cards/search-cards.component.html index 013a637..add64d0 100644 --- a/src/app/_shared/components/search-cards/search-cards.component.html +++ b/src/app/_shared/components/search-cards/search-cards.component.html @@ -1,19 +1,19 @@ -@if(displayTotal === 0) { +@if(searchService.displayTotal() === 0) {
For help using the search tool, check the help guide.