Skip to content

Commit 8934d87

Browse files
committed
Fix yarn script
1 parent 614eb7a commit 8934d87

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "jest",
1414
"test-all": "yarn lint && yarn type-check && yarn test",
1515
"hardhat:node": "hardhat node",
16-
"contracts:deploy": "hardhat run ./scripts/deploy.js localhost"
16+
"contracts:deploy": "hardhat run ./scripts/deploy.js --network localhost"
1717
},
1818
"husky": {
1919
"hooks": {

src/hooks/web3Modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function useWeb3Modal() {
2828

2929
// Automatically connect if the provider is cashed but has not yet
3030
// been set (e.g. page refresh)
31-
if (web3Modal.cachedProvider && !provider) {
31+
if (web3Modal?.cachedProvider && !provider) {
3232
connectWallet();
3333
}
3434

src/pages/issue/[slug].tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,11 @@ export const IssueTemplate = (props): JSX.Element => {
4747
<span className="block text-xs font-medium uppercase text-better-black">
4848
Total funded
4949
</span>
50+
<div>{ethers.utils.formatEther(bounty?.balance || 0)} ETH</div>
5051
<div>Funded in USER_CURR, click for details</div>
5152
</div>
5253

5354
<div className="py-2">
54-
<div>
55-
Current funds: {ethers.utils.formatEther(bounty?.balance || 0)}{" "}
56-
ETH
57-
</div>
5855
<span className="text-xs font-medium uppercase text-better-black">
5956
Funding goal
6057
</span>

0 commit comments

Comments
 (0)