fix: remove duplicate containerRect declaration

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 <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2025-11-19 11:00:37 -06:00
parent 6736336317
commit 1a690e00b0
1 changed files with 1 additions and 1 deletions

View File

@ -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