Skip to content

fix: prevent double execution of unstake button#1306

Open
VQToan wants to merge 1 commit into
etherisc:developfrom
VQToan:fix-unstake-double-click
Open

fix: prevent double execution of unstake button#1306
VQToan wants to merge 1 commit into
etherisc:developfrom
VQToan:fix-unstake-double-click

Conversation

@VQToan
Copy link
Copy Markdown

@VQToan VQToan commented May 14, 2026

Fixes #204

Description

Prevents double execution when clicking the Unstake button by disabling it while the form is submitting. This ensures the action is only triggered once, resolving the double-click bug.

Changes

  • Added isSubmitting state to UnstakeBundleForm
  • Set isSubmitting to true on form submit and false when done
  • Disabled the submit button when isSubmitting is true

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]: Unstake button double click

1 participant