Skip to content

Commit

Permalink
dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Dec 13, 2024
1 parent 5eeb9e8 commit d7f3dca
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions client/src/ui/components/trading/MarketModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,37 +112,6 @@ export const MarketModal = () => {
return battleManager.getUpdatedArmy(bankArmy, updatedBattle);
}, [currentBlockTimestamp, battleManager, bankArmy]);


// const [subscriptions, setSubscriptions] = useState<{ [entity: string]: boolean }>({});
// const [isLoading, setIsLoading] = useState(false);

// useEffect(() => {
// // if (!bank?.entityId || subscriptions[bank?.entityId?.toString()]) {
// // return;
// // }
// // setSubscriptions((prev) => ({ ...prev, [bank?.entityId?.toString()]: true }));
// const fetch = async () => {
// setIsLoading(true);

// try {
// await addToSubscription(
// dojo.network.toriiClient,
// dojo.network.contractComponents as any,
// bank?.entityId?.toString() || "",
// { x: 0, y: 0 },
// );
// } catch (error) {
// console.error("Fetch failed", error);
// } finally {
// setIsLoading(false);
// }

// console.log("market modal loading");
// };

// fetch();
// }, [structureEntityId, bank?.entityId]);

const tabs = useMemo(
() => [
{
Expand Down

0 comments on commit d7f3dca

Please sign in to comment.