Jofthomas HF staff commited on
Commit
40cddc6
1 Parent(s): 0f725c2

check again

Browse files
patches/convex/world.ts CHANGED
@@ -4,7 +4,6 @@ import { characters } from '../data/characters';
4
  import { insertInput } from './aiTown/insertInput';
5
  import { Descriptions } from '../data/characters';
6
  import {
7
- DEFAULT_NAME,
8
  ENGINE_ACTION_DURATION,
9
  IDLE_WORLD_TIMEOUT,
10
  WORLD_HEARTBEAT_INTERVAL,
@@ -107,7 +106,7 @@ export const userStatus = query({
107
  if (!oauthToken) {
108
  return null;
109
  }
110
-
111
  return oauthToken;
112
  },
113
  });
 
4
  import { insertInput } from './aiTown/insertInput';
5
  import { Descriptions } from '../data/characters';
6
  import {
 
7
  ENGINE_ACTION_DURATION,
8
  IDLE_WORLD_TIMEOUT,
9
  WORLD_HEARTBEAT_INTERVAL,
 
106
  if (!oauthToken) {
107
  return null;
108
  }
109
+ console.log("oauthToken",oauthToken)
110
  return oauthToken;
111
  },
112
  });
patches/src/components/Game.tsx CHANGED
@@ -92,7 +92,7 @@ export default function Game() {
92
  const scrollViewRef = useRef<HTMLDivElement>(null);
93
 
94
  const humanTokenIdentifier = useQuery(api.world.userStatus, worldId ? { worldId } : 'skip');
95
- if (!worldId || !engineId || !game || !humanTokenIdentifier) {
96
  return null;
97
  }
98
  const playerId = [...game.world.players.values()].find(
 
92
  const scrollViewRef = useRef<HTMLDivElement>(null);
93
 
94
  const humanTokenIdentifier = useQuery(api.world.userStatus, worldId ? { worldId } : 'skip');
95
+ if (!worldId || !engineId || !game ) {
96
  return null;
97
  }
98
  const playerId = [...game.world.players.values()].find(