Skip to content

fix: disable claim button while loading claim data after network switch#633

Draft
Copilot wants to merge 1 commit into
masterfrom
copilot/replicate-fixes-from-pr-630
Draft

fix: disable claim button while loading claim data after network switch#633
Copilot wants to merge 1 commit into
masterfrom
copilot/replicate-fixes-from-pr-630

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 17, 2026

  • Review PR fix: disable claim button while loading claim data after network switch #630 description and AI (Sourcery) review
  • Add explicit isClaimLoading boolean state flag (Sourcery suggestion: avoid using claimed === undefined as sentinel)
  • Set isClaimLoading = true in the chainId useEffect
  • Set isClaimLoading = false when claim data resolves in hasClaimed
  • Add Spinner import from native-base
  • Conditionally render Spinner vs ClaimButton using isClaimLoading
  • Run parallel validation (CodeQL: 0 alerts, Code review: passed)

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying goodprotocolui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8cd1587
Status: ✅  Deploy successful!
Preview URL: https://979f27fa.goodprotocolui.pages.dev
Branch Preview URL: https://copilot-replicate-fixes-from.goodprotocolui.pages.dev

View logs

Copilot stopped work on behalf of L03TJ3 due to an error April 17, 2026 13:01
@L03TJ3 L03TJ3 linked an issue Apr 17, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: claim button appears clickable while loading claim data

2 participants