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

[Bug] A claimable payout may be not displayed #2213

Open
Leouarz opened this issue Aug 21, 2024 · 2 comments
Open

[Bug] A claimable payout may be not displayed #2213

Leouarz opened this issue Aug 21, 2024 · 2 comments

Comments

@Leouarz
Copy link

Leouarz commented Aug 21, 2024

Hey,

If for the same era there are multiple claimable payouts for the same user and the first one has been claimed, the next one won't be shown in the modal.

The issue comes from this piece of code : https://github.com/polkadot-cloud/polkadot-staking-dashboard/blob/main/src/contexts/Payouts/index.tsx#L253-L303

Especially in this line, even if the first unclaimed payout is zero, j should be incremented and the next validator should be checked.

Hopefully I understood the code correctly, I can also open a PR if necessary.
Don't hesitate if you need more info.

@rossbulat
Copy link
Collaborator

Thanks for reporting and even suggesting the bug in code @Leouarz! Please allow us a bit of time to investigate.

@Carach71
Copy link

Wat moet ik doen?

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

No branches or pull requests

3 participants