Skip to content

Fix Stake CAP approval pending state#227

Open
duongynhi000005-oss wants to merge 1 commit into
capofficial:mainfrom
duongynhi000005-oss:main
Open

Fix Stake CAP approval pending state#227
duongynhi000005-oss wants to merge 1 commit into
capofficial:mainfrom
duongynhi000005-oss:main

Conversation

@duongynhi000005-oss
Copy link
Copy Markdown

Fixes the Stake CAP approval UX from issue #32.

What changed:

  • add isApproving state to the Stake CAP modal
  • show the existing loading spinner on Approve CAP while the wallet confirmation is pending
  • prevent repeat approval clicks from firing duplicate approve requests before the first wallet prompt resolves

Why:
The Stake CAP modal was the one approval flow that did not track pending approval state. While the wallet prompt was still open, users could keep clicking the button and trigger a misleading error before confirming the approval.

Validation:

  • npm run build

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.

1 participant