Skip to content

Commit 1f3d2c3

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 5ca3a2c commit 1f3d2c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export default function UnclaimedHypercertClaimButton({
6969
}}
7070
disabled={selectedHypercert?.user_address !== activeAddress || isLoading}
7171
>
72-
{hypercertChainId === currentChain?.id?.toString()
73-
? "Claim"
74-
: `Switch chain`}
72+
{hypercertChainId === activeAddress && !currentChain?.id?.toString()
73+
? "Switch chain"
74+
: "Claim"}
7575
</Button>
7676
);
7777
}

0 commit comments

Comments
 (0)