Skip to content

Commit

Permalink
fix(#74): showing undefined when missing unit
Browse files Browse the repository at this point in the history
  • Loading branch information
infanf committed May 15, 2024
1 parent e3ba881 commit 8642d21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class ExternalRatingComponent {
return `${this.numberPipe.transform(this.rating?.rating.norm || 0, '1.0-1')} %`;
default:
return `${this.numberPipe.transform(this.rating?.rating.nom, '1.0-2')} ${
this.rating?.rating.unit
this.rating?.rating.unit || ''
}`.trim();
}
}
Expand Down

0 comments on commit 8642d21

Please sign in to comment.