Fix: Finalize button stuck in pending upon motion finalization #4260
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Screen.Recording.2025-02-07.at.09.32.57.mov
Note
While the transaction will still fail for the unlucky user, they will now be able to continue with stake claiming if applicable
![Screenshot 2025-02-07 at 09 27 33](https://private-user-images.githubusercontent.com/32430018/410835549-c050fe74-34c7-42e2-bb25-6fe7df341fae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDY5MDMsIm5iZiI6MTczOTQ0NjYwMywicGF0aCI6Ii8zMjQzMDAxOC80MTA4MzU1NDktYzA1MGZlNzQtMzRjNy00MmUyLWJiMjUtNmZlN2RmMzQxZmFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDExMzY0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiMTU0OGE0NjBlN2YxMjFhOWJjZjE4ZWE0Yzg3YTI0ZGE2ZTJlMGFhMTIwOGNlNzMxYzBhZGNhMDhjNDY1NDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._oH7wOrJ6JOTKinr5Qs0eJXXJiK_jMCv1XOAYMmdemI)
Testing
Note
It will be useful to have 2 browser windows opened, in one logged in as
leela
and the other asamy
orfry
Reputation Weighted
extension and enable itMint tokens
motion asleela
usingReputation
amy
and vote for the motion. Now vote also asleela
Finalize
step. Check bothleela
andamy
see theFinalize
buttonFinalize
the motion both asleela
andamy
Pending
button is not getting stuck for any of the users and they can proceed toClaim
.One of the users will still have the
Pending
transaction as finalising the motion will fail and theRetryProvider
keeps re-trying it.On this branch
Screen.Recording.2025-02-07.at.09.26.27.mov
Master
Screen.Recording.2025-02-07.at.09.29.04.mov
Diffs
New stuff ✨
FinalizeStepContent
to simplify a bit the code for theFinalizeStep
Resolves #4170