Spaces:
Sleeping
Sleeping
default value
Browse files- convex/aiTown/game.ts +1 -1
convex/aiTown/game.ts
CHANGED
|
@@ -29,7 +29,7 @@ import { parseMap, serializeMap } from '../util/object';
|
|
| 29 |
import { LOBBY_SIZE } from '../constants';
|
| 30 |
import { api } from '../_generated/api';
|
| 31 |
|
| 32 |
-
const defaultWorld = useQuery(api.world.defaultWorldStatus)
|
| 33 |
|
| 34 |
const frozen = defaultWorld?.status === 'stoppedByDeveloper';
|
| 35 |
console.log("Frozen : ", frozen)
|
|
|
|
| 29 |
import { LOBBY_SIZE } from '../constants';
|
| 30 |
import { api } from '../_generated/api';
|
| 31 |
|
| 32 |
+
const defaultWorld = useQuery(api.world.defaultWorldStatus)?? false;;
|
| 33 |
|
| 34 |
const frozen = defaultWorld?.status === 'stoppedByDeveloper';
|
| 35 |
console.log("Frozen : ", frozen)
|