Skip to content

Commit

Permalink
Fix popup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Mar 5, 2024
1 parent b27dd59 commit 60de9e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/app/recover-funds/[address]/RecoverFundsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,11 @@ function RecoverFundsButton({

if (!signer) return null;

const l1ChainId = getL1ChainIdFromL2ChainId(chain?.id);
if (
l1ChainId !== mainnet.id &&
l1ChainId !== goerli.id &&
l1ChainId !== sepolia.id
chain?.id !== mainnet.id &&
chain?.id !== goerli.id &&
chain?.id !== sepolia.id
) {
console.log(chain);
return (
<div>Unknown L1 chain id. This chain is not supported by this tool</div>
);
Expand All @@ -180,14 +178,16 @@ function RecoverFundsButton({
return (
<>
<div className="recover-funds-form">
<button
className="button"
id="recover-button"
disabled={loading}
onClick={handleRecover}
>
Recover
</button>
<div>
<button
className="button"
id="recover-button"
disabled={loading}
onClick={handleRecover}
>
Recover
</button>
</div>
{loading && isSmartContractWallet && (
<div className="flex flex-col">
<span>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/useAccountType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function useAccountType(): Result {

// By default, assume it's an EOA
return {
isSmartContractWallet: false,
isSmartContractWallet: isSmartContractWallet ?? false,
isLoading: isSmartContractWallet === null,
};
}

0 comments on commit 60de9e7

Please sign in to comment.