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:
parent
fa1514d351
commit
77033f0b22
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue