diff --git a/app/api/guides/[guideId]/artifacts/image/route.tsx b/app/api/guides/[guideId]/artifacts/image/route.tsx index 2a9b5b4..8173b7f 100644 --- a/app/api/guides/[guideId]/artifacts/image/route.tsx +++ b/app/api/guides/[guideId]/artifacts/image/route.tsx @@ -193,7 +193,7 @@ export async function GET( {row.note ?
{row.note}
: null}
- {metric(row.percent)} + {Number(row.percent) === 0 ? "-%" : metric(row.percent)}
))} diff --git a/components/public/structured-guide.tsx b/components/public/structured-guide.tsx index c4338bd..4ed24dc 100644 --- a/components/public/structured-guide.tsx +++ b/components/public/structured-guide.tsx @@ -357,7 +357,7 @@ function ArtifactSection({ guide }: { guide: PublicGuide }) { {row.note ?

{row.note}

: null}

- {metric(row.percent)} + {Number(row.percent) === 0 ? "-%" : metric(row.percent)}

))}