Skip to content

Commit

Permalink
Disable decompile button if network === 31337
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Sep 27, 2024
1 parent 48b3996 commit 39ac159
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ const Home: NextPage = () => {
<button
className="btn btn-primary min-h-fit h-10 px-4 text-base font-semibold border-2 hover:bg-neutral hover:text-primary"
onClick={() => fetchAbiFromHeimdall(localAbiContractAddress as Address)}
disabled={network === "31337"}
>
{isFetchingAbi ? <span className="loading loading-spinner"></span> : "Decompile (beta)"}
</button>
Expand Down

0 comments on commit 39ac159

Please sign in to comment.