diff --git a/src/app/_shared/components/card-text/card-text.component.html b/src/app/_shared/components/card-text/card-text.component.html index fe1a2da..20cfac0 100644 --- a/src/app/_shared/components/card-text/card-text.component.html +++ b/src/app/_shared/components/card-text/card-text.component.html @@ -1 +1 @@ -

{{ text() }}

\ No newline at end of file +

{{ text() }}

\ No newline at end of file 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 aa04532..efc33c7 100644 --- a/src/app/_shared/components/card-text/card-text.component.ts +++ b/src/app/_shared/components/card-text/card-text.component.ts @@ -9,6 +9,7 @@ import { environment } from '../../../../environments/environment'; }) export class CardTextComponent { public text = input.required(); + public product = input(); public html = ''; diff --git a/src/app/_shared/pipes/faq.pipe.ts b/src/app/_shared/pipes/faq.pipe.ts index c042924..3109c4c 100644 --- a/src/app/_shared/pipes/faq.pipe.ts +++ b/src/app/_shared/pipes/faq.pipe.ts @@ -9,8 +9,9 @@ export class FaqPipe implements PipeTransform { private metaService = inject(MetaService); private cardsService = inject(CardsService); - transform(value: string, ...args: string[]): string { + transform(value: string, ...args: (string | undefined)[]): string { const [productId] = args; + if (!productId) return value ?? ''; const ruleRegex = /\$rule:([\d.]+)\$/gm; value = value.replace(ruleRegex, (match, p1) => { diff --git a/src/app/card/card.page.html b/src/app/card/card.page.html index 266d2fc..9179b94 100644 --- a/src/app/card/card.page.html +++ b/src/app/card/card.page.html @@ -114,7 +114,8 @@

+ + } diff --git a/src/app/errata/errata.page.html b/src/app/errata/errata.page.html index 3161147..4b9085a 100644 --- a/src/app/errata/errata.page.html +++ b/src/app/errata/errata.page.html @@ -32,7 +32,7 @@ @for(errataEntry of entry.errata; track $index) { -

+
}