From 709c2c20db4301ef009e2bf1fff59f41dda6eade Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Thu, 4 Dec 2025 17:03:58 +1000 Subject: [PATCH] fix: handle undefined githubStars in tool detail page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use loose equality (!=) instead of strict equality (!==) to check for both null and undefined values. This prevents runtime TypeError when githubStars is undefined. Fixes: Cannot read properties of undefined (reading 'toLocaleString') 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/web/src/app/tool/[...slug]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/tool/[...slug]/page.tsx b/apps/web/src/app/tool/[...slug]/page.tsx index 04e8d8c..cc99495 100644 --- a/apps/web/src/app/tool/[...slug]/page.tsx +++ b/apps/web/src/app/tool/[...slug]/page.tsx @@ -419,7 +419,7 @@ export default function ToolDetailPage({ {tool.npmDownloadsLastMonth?.toLocaleString() || '0'}

- {tool.githubStars !== null && ( + {tool.githubStars != null && (

GitHub Stars