From d247a61c7e533ecd158501ccee60f2e7040697b8 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Thu, 30 Jul 2026 22:31:31 +0000 Subject: [PATCH] fix: pluralize metrics in ogre --- ogre/src/components/shared/metrics.tsx | 8 +++++--- 1 file(s) changed, 5 insertion(s)(+), 3 deletion(s)(-) diff --git a/ogre/src/components/shared/metrics.tsx b/ogre/src/components/shared/metrics.tsx --- a/ogre/src/components/shared/metrics.tsx +++ b/ogre/src/components/shared/metrics.tsx @@ -13,13 +13,15 @@ issues: number; } +const pluralize = (label: string, n: number) => (`${label}${n === 1 ? "" : "s"}`); + // Display stars, pulls, issues with Lucide icons export function Metrics({ stars, pulls, issues }: MetricsProps) { return ( - - - + + + ); } -- tangled.sh