Skip to content

Commit 69cd187

Browse files
committed
debug error
1 parent 683dd78 commit 69cd187

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

packages/react-app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"ipfs-http-client": "^55.0.0",
4646
"isomorphic-fetch": "^3.0.0",
4747
"node-watch": "^0.7.1",
48-
"postcss": "^8.2.6",
4948
"qrcode.react": "^1.0.0",
5049
"react": "^17.0.2",
5150
"react-blockies": "^1.4.1",

packages/react-app/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
};
5454
</script>
5555
<% } %>
56-
<title>Ethereum App</title>
56+
<title>ScaffoldGods</title>
5757
</head>
5858
<body>
5959
<noscript>You need to enable JavaScript to run this app.</noscript>

packages/react-app/src/components/scaffoldGods/GameInfo.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ const GameInfo = () => {
1919
await tx(writeContracts.ScaffoldGods.quitBattle(battleName));
2020

2121
setShowAlert({ status: true, type: "info", message: `You're quitting the ${battleName}` });
22-
navigate("/create-battle");
22+
return navigate("/create-battle");
2323
} catch (error) {
2424
setErrorMessage(error);
25+
return null;
2526
}
2627
};
2728

packages/react-app/src/context/createEventListeners.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const AddNewEvent = (eventFilter, provider, cb) => {
1010

1111
provider.on(eventFilter, logs => {
1212
const parsedLog = new ethers.utils.Interface(
13-
deployedContracts[NETWORKS.localhost.chainId].goerli.contracts.ScaffoldGods.abi,
13+
deployedContracts[NETWORKS.goerli.chainId].goerli.contracts.ScaffoldGods.abi,
1414
).parseLog(logs);
1515

1616
cb(parsedLog);
@@ -114,6 +114,6 @@ export const createEventListeners = ({
114114
setShowAlert({ status: true, type: "failure", message: "You lost!" });
115115
}
116116

117-
navigate("/create-battle");
117+
return navigate("/create-battle");
118118
});
119119
};

packages/react-app/src/page/Battle.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const Battle = () => {
7474

7575
useEffect(() => {
7676
const timer = setTimeout(() => {
77-
if (!gameData?.activeBattle) navigate("/");
77+
if (!gameData?.activeBattle) return navigate("/");
7878
}, [500]);
7979

8080
return () => clearTimeout(timer);

packages/react-app/tailwind.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
module.exports = {
22
// purge: [], enable purge for production builds
3+
purge: true,
34
darkMode: false, // or 'media' or 'class'
45
theme: {
56
extend: {
67
colors: {
7-
siteblack: '#131519',
8-
siteDimBlack: '#191d23',
9-
siteViolet: '#7f46f0',
10-
siteWhite: '#9eacc7',
8+
siteblack: "#131519",
9+
siteDimBlack: "#191d23",
10+
siteViolet: "#7f46f0",
11+
siteWhite: "#9eacc7",
1112
},
1213
backgroundImage: {
1314
astral: "url('/src/assets/background/astral.jpg')",
@@ -18,7 +19,7 @@ module.exports = {
1819
landing: "url('/src/assets/background/landing.jpg')",
1920
},
2021
fontFamily: {
21-
rajdhani: ['Rajdhani', 'sans-serif'],
22+
rajdhani: ["Rajdhani", "sans-serif"],
2223
},
2324
},
2425
},

0 commit comments

Comments
 (0)