Skip to content

Commit

Permalink
Hide Implementation Address if there is no impl addy
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Mar 23, 2024
1 parent a1a5895 commit a225935
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,12 @@ export const ContractUI = ({ className = "", initialContractData }: ContractUIPr
<span className="font-medium text-base mr-4"> {displayContractName} </span>
<Address address={initialContractData.address} />
</div>
<div className="flex items-center gap-1">
<span className="font-medium text-base mr-4 text-green-600">Implementation Address</span>
<Address address={implementationAddress} />
</div>
{implementationAddress && (
<div className="flex items-center gap-1">
<span className="font-medium text-base mr-4 text-green-600">Implementation Address</span>
<Address address={implementationAddress} />
</div>
)}
<div className="flex items-center gap-1">
<span className="text-sm font-bold">Balance:</span>
<Balance address={initialContractData.address} className="h-1.5 min-h-[0.375rem] px-0" />
Expand Down

0 comments on commit a225935

Please sign in to comment.