fix: show missing artifact percentage as dash
This commit is contained in:
@@ -193,7 +193,7 @@ export async function GET(
|
||||
{row.note ? <div style={{ display: "flex", color: "#b9b9c2", fontSize: 14, lineHeight: 1.55 }}>{row.note}</div> : null}
|
||||
</div>
|
||||
<div style={{ display: "flex", color: "#f0b72f", fontSize: 26, fontWeight: 700 }}>
|
||||
{metric(row.percent)}
|
||||
{Number(row.percent) === 0 ? "-%" : metric(row.percent)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@@ -357,7 +357,7 @@ function ArtifactSection({ guide }: { guide: PublicGuide }) {
|
||||
{row.note ? <p className="whitespace-pre-wrap text-sm text-muted-foreground">{row.note}</p> : null}
|
||||
</div>
|
||||
<p className="text-2xl font-semibold text-primary">
|
||||
{metric(row.percent)}
|
||||
{Number(row.percent) === 0 ? "-%" : metric(row.percent)}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user