From 1a690e00b04f2fe20dfd611449f4bf323f7b3d99 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Wed, 19 Nov 2025 11:00:37 -0600 Subject: [PATCH] fix: remove duplicate containerRect declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TypeScript error: containerRect was declared twice in the same scope. The variable is already declared at the top of handleMouseMove, no need to redeclare it when calculating magnifier position. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../src/arcade-games/know-your-world/components/MapRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/arcade-games/know-your-world/components/MapRenderer.tsx b/apps/web/src/arcade-games/know-your-world/components/MapRenderer.tsx index a729ab91..d1b7d456 100644 --- a/apps/web/src/arcade-games/know-your-world/components/MapRenderer.tsx +++ b/apps/web/src/arcade-games/know-your-world/components/MapRenderer.tsx @@ -910,7 +910,7 @@ export function MapRenderer({ } // Calculate magnifier position (opposite corner from cursor) - const containerRect = containerRef.current.getBoundingClientRect() + // containerRect already declared at top of function const magnifierWidth = containerRect.width * 0.5 const magnifierHeight = magnifierWidth / 2 const isLeftHalf = cursorX < containerRect.width / 2