fix: hide abacus on /arcade and /arcade-rooms routes

The previous check for `/arcade/` (with trailing slash) missed:
- /arcade (the arcade landing page)
- /arcade-rooms/* (actual game rooms)

Changed to `/arcade` prefix check which catches all arcade routes.

🤖 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-30 18:39:29 -06:00
parent fa1514d351
commit 77033f0b22
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ export function MyAbacus() {
const trophyStyles = ABACUS_THEMES.trophy
// Detect if we're on a game route (arcade games hide the abacus by default)
const isOnGameRoute = pathname?.startsWith('/arcade/')
// This matches /arcade, /arcade/*, and /arcade-rooms/*
const isOnGameRoute = pathname?.startsWith('/arcade')
// Hide completely when:
// 1. isHidden is true (e.g., virtual keyboard is shown on non-game pages)