Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton-Mushnin committed Mar 14, 2024
1 parent 6b60f23 commit 1bfdf22
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions web/src/components/playing/PlayView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ const PlayView = ({ selectedToken }: { selectedToken: Token }) => {
const gameContract = new web3ctx.web3.eth.Contract(FullcountABI) as any;
gameContract.options.address = contractAddress;
const tokenContract = new web3ctx.web3.eth.Contract(tokenABI) as any;
// console.log("rerender");
const isPitcher = (token?: Token) =>
selectedSession?.pair.pitcher?.id === token?.id &&
selectedSession?.pair.pitcher?.address === token?.address;
Expand All @@ -105,7 +104,6 @@ const PlayView = ({ selectedToken }: { selectedToken: Token }) => {
refetchInterval: 100000000,
onSuccess: (data) => {
console.log("sessionAtBatID success: ", data);
// atBatStatus.refetch();
},
},
);
Expand Down Expand Up @@ -160,7 +158,6 @@ const PlayView = ({ selectedToken }: { selectedToken: Token }) => {
if (!selectedSession) return undefined;
const id = sessionID ?? selectedSession.sessionID;
if (!secondsPerPhase) {
console.log("SECONDS PER PHASE CALL", secondsPerPhase);
const secondsPerPhaseRes = Number(await gameContract.methods.SecondsPerPhase().call());
updateContext({ secondsPerPhase: secondsPerPhaseRes });
}
Expand Down Expand Up @@ -211,7 +208,6 @@ const PlayView = ({ selectedToken }: { selectedToken: Token }) => {
);
if (!tokenFromCache) {
tokenContract.options.address = otherToken.address;
console.log("TOKEN CALLS", otherToken, opponent);
const URI = await tokenContract.methods.tokenURI(otherToken.id).call();
const tokenMetadata = await getTokenMetadata(URI);
setOpponent({
Expand Down

0 comments on commit 1bfdf22

Please sign in to comment.