From 77e7eedbe07995845041095434cc5e2c51a77ea5 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 && (