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

Commit

Permalink
fix avatar spawning
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Jul 6, 2024
1 parent 5a15482 commit de6973d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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', '')
else SearchParamState.set('spectate', none)
}, [selectedRoute?.spawnAvatar])
if (selectedRoute?.spawnAvatar) SearchParamState.set('spectate', none)
else SearchParamState.set('spectate', '')
}, [selectedRoute])

const Entry = selectedRoute && selectedRoute.entry

Expand Down

0 comments on commit de6973d

Please sign in to comment.