Skip to content

Commit

Permalink
Require verifiedContractAddress state var to be a valid address befor…
Browse files Browse the repository at this point in the history
…e switching to TabName.addressAbi
  • Loading branch information
portdeveloper committed Sep 27, 2024
1 parent 1cf1f8d commit 48b3996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const Home: NextPage = () => {
setContractAbi(contractData.abi);
}

if (network === "31337") {
if (network === "31337" && isAddress(verifiedContractAddress)) {
setActiveTab(TabName.addressAbi);
setLocalAbiContractAddress(verifiedContractAddress);
return;
Expand Down

0 comments on commit 48b3996

Please sign in to comment.