Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdelab committed Aug 12, 2024
1 parent 187d7d9 commit 06274ae
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ export const BuildingEntityDetails = () => {

// const selectedBuildingEntityId = useUIStore((state) => state.selectedBuildingEntityId);
const selectedBuildingHex = useUIStore((state) => state.selectedBuildingHex);
console.log({ selectedBuildingHex });

useEffect(() => {
const building = getComponentValue(
dojo.setup.components.Building,
getEntityIdFromKeys(Object.values(selectedBuildingHex).map((v) => BigInt(v))),
);

console.log({ building });

if (building) {
setBuildingType(BuildingType[building.category as keyof typeof BuildingType]);
setResource(building.produced_resource_type as ResourcesIds);
Expand Down

0 comments on commit 06274ae

Please sign in to comment.