Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(manage-nominations): Revert changes behavior in Manage nominations #2077

Merged

Conversation

frankli-dev
Copy link
Contributor

"Revert Changes" is not working correctly in the Manage Nominations modal. The issue stems from both defaultNominations and newNominations pointing to the same memory. Consequently, when modifying newNominations, defaultNominations is also altered. As a result, clicking the "Revert Changes" button does not correctly revert the changes back.

https://github.com/paritytech/polkadot-staking-dashboard/blob/main/src/canvas/ManageNominations/index.tsx#L55-L64

@rossbulat rossbulat merged commit a5bc9e9 into polkadot-cloud:main Apr 11, 2024
9 checks passed
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.

2 participants