Skip to content

Commit 2a93a97

Browse files
committed
fix: showing switch chain when disconnected
When disconnected the button was showing "Switch chain". Now it shows "Claim" and only an outline. It's disabled as well until the user connects their wallet.
1 parent 20c0848 commit 2a93a97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/profile/unclaimed-hypercert-claim-button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ export default function UnclaimedHypercertClaimButton({
6666
}}
6767
disabled={selectedHypercert?.user_address !== activeAddress || isLoading}
6868
>
69-
{hypercertChainId === currentChain?.id?.toString()
70-
? "Claim"
71-
: `Switch chain`}
69+
{hypercertChainId === activeAddress && !currentChain?.id?.toString()
70+
? "Switch chain"
71+
: "Claim"}
7272
</Button>
7373
);
7474
}

0 commit comments

Comments
 (0)