Spaces:
Sleeping
Sleeping
logging
Browse files- src/components/Game.tsx +3 -1
src/components/Game.tsx
CHANGED
|
@@ -96,10 +96,12 @@ export default function Game() {
|
|
| 96 |
const scrollViewRef = useRef<HTMLDivElement>(null);
|
| 97 |
|
| 98 |
const humanTokenIdentifier = useQuery(api.world.userStatus, { worldId, oauthToken });
|
|
|
|
| 99 |
if (!worldId || !engineId || !game ) {
|
| 100 |
return null;
|
| 101 |
}
|
| 102 |
-
|
|
|
|
| 103 |
const playerId = [...game.world.players.values()].find(
|
| 104 |
(p) => !!p && p.human === humanTokenIdentifier,
|
| 105 |
)?.id;
|
|
|
|
| 96 |
const scrollViewRef = useRef<HTMLDivElement>(null);
|
| 97 |
|
| 98 |
const humanTokenIdentifier = useQuery(api.world.userStatus, { worldId, oauthToken });
|
| 99 |
+
|
| 100 |
if (!worldId || !engineId || !game ) {
|
| 101 |
return null;
|
| 102 |
}
|
| 103 |
+
console.log(humanTokenIdentifier)
|
| 104 |
+
console.log("game.world.players.values() :",game.world.players.values())
|
| 105 |
const playerId = [...game.world.players.values()].find(
|
| 106 |
(p) => !!p && p.human === humanTokenIdentifier,
|
| 107 |
)?.id;
|