diff --git a/src/app/shared/pipes/translate-cases.pipe.ts b/src/app/shared/pipes/translate-cases.pipe.ts index 724aa22448..a6498a1353 100644 --- a/src/app/shared/pipes/translate-cases.pipe.ts +++ b/src/app/shared/pipes/translate-cases.pipe.ts @@ -17,7 +17,7 @@ export class TranslateCasesPipe implements PipeTransform { transform(count: number, enumTranslate: any): string { const countLastStr = count?.toString().slice(-1); - let countNum = count?.toString(); + let countNum = count?.toString() || '0'; if (count === 0 || (count >= 11 && count <= 14)) { this.translateKey = enumTranslate[2];