From 9b0b5f8c8376ffae1a6b28de12f45ec4f466b340 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Tue, 1 Sep 2026 13:47:07 +0700 Subject: [PATCH] fix: show missing artifact percentage as dash --- app/api/guides/[guideId]/artifacts/image/route.tsx | 2 +- components/public/structured-guide.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)}

))}