Skip to content

Conversation

ap211unitech
Copy link
Member

📝 Description

This PR fixes a UI bug where, after interacting with a referendum (voting or placing a decision deposit) or performing a bounty-related action, the list refresh would only show the updated item and hide the rest until a manual page reload. The update ensures that a full list refresh occurs after transactions so all items remain visible without requiring a reload.

Screen.Recording.2025-08-25.at.13.04.24.mov

const res = ids.map((id, i) => {
const infoOpt = all[i];
const info = infoOpt?.isSome ? infoOpt.unwrap() : undefined;
const info = infoOpt.unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure that a problem will not occur if infoOpt is undefined? Why are we removing the isSome() check before unwrapping the value

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wherever info is getting used, it makes sure it is not undefined, so It wouldn't break anything. Actually, I am getting back to original implementation here, so removed that isSome check.

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.

List collapses to single item on Referenda & Bounties
2 participants