Skip to content
This repository has been archived by the owner on Aug 18, 2024. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Jul 6, 2024
1 parent 09ddc40 commit 5a15482
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sceneRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ const Routes = (props: { routeCategories: RouteCategories; header: string }) =>
)[0]

useEffect(() => {
if (selectedRoute.spawnAvatar) SearchParamState.set('spectate', '')
if (selectedRoute?.spawnAvatar) SearchParamState.set('spectate', '')
else SearchParamState.set('spectate', none)
}, [selectedRoute.spawnAvatar])
}, [selectedRoute?.spawnAvatar])

const Entry = selectedRoute && selectedRoute.entry

Expand Down

0 comments on commit 5a15482

Please sign in to comment.