Skip to content

Conversation

@cctdaniel
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Feb 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
xc-admin-frontend ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 11:46PM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
example-oracle-amm ⬜️ Ignored (Inspect) Feb 17, 2023 at 11:46PM (UTC)

Copy link
Contributor

@guibescos guibescos left a comment

Choose a reason for hiding this comment

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

There's a bug where if you click in a proposal and then back to proposals. The proposal disappears.

@cctdaniel
Copy link
Contributor Author

There's a bug where if you click in a proposal and then back to proposals. The proposal disappears.

can you try again?

const proposals = prevProposals.filter(
(proposal) =>
proposal.publicKey.toBase58() !==
const index = prevProposals.findIndex(
Copy link
Contributor

@guibescos guibescos Feb 17, 2023

Choose a reason for hiding this comment

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

Nitpick : can you use currentProposalIndex for this? This seems inefficient

Copy link
Contributor

@guibescos guibescos left a comment

Choose a reason for hiding this comment

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

Seems to be working now!

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.

3 participants