chore(mission-ratings): sanitize em-dash placeholders in overview + discord embed
This commit is contained in:
parent
b207adc4dc
commit
1f46275926
2 changed files with 3 additions and 3 deletions
|
|
@ -295,7 +295,7 @@ export const renderRatingEmbed = (
|
|||
[
|
||||
"How did we do? Rate each factor below, then head to the mission page to add a comment.",
|
||||
"",
|
||||
`**Overall:** ${overall !== null ? overall.toFixed(2) : "—"} / 5 (${
|
||||
`**Overall:** ${overall !== null ? overall.toFixed(2) : "-"} / 5 (${
|
||||
aggregate.raterCount
|
||||
} rating${aggregate.raterCount === 1 ? "" : "s"})`,
|
||||
].join("\n"),
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ function Overview({ aggregate, factors }: { aggregate: MissionRatingAggregate; f
|
|||
Overall rating
|
||||
</span>
|
||||
<span className="font-mono text-4xl font-semibold tracking-tight">
|
||||
{overall !== null ? formatStars(overall) : "—"}
|
||||
{overall !== null ? formatStars(overall) : "-"}
|
||||
</span>
|
||||
</div>
|
||||
<span className="text-xs text-muted-foreground">
|
||||
|
|
@ -252,7 +252,7 @@ function Overview({ aggregate, factors }: { aggregate: MissionRatingAggregate; f
|
|||
<div className="flex items-center justify-between gap-2">
|
||||
<span className="text-sm font-medium">{factor.factor}</span>
|
||||
<span className="font-mono text-xs text-muted-foreground">
|
||||
{factor.average !== null ? formatStars(factor.average) : "—"} · {factor.count}
|
||||
{factor.average !== null ? formatStars(factor.average) : "-"} · {factor.count}
|
||||
</span>
|
||||
</div>
|
||||
<DistributionBar distribution={factor.distribution} count={factor.count} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue