polkadot-js / apps

Basic Polkadot/Substrate UI for interacting with a Polkadot and Substrate node. This is the main user-facing application, allowing access to all features available on Substrate chains.
https://dotapps.io
Apache License 2.0
1.73k stars 1.51k forks source link

Display issue with support on Referendum 763 #10568

Open laboon opened 1 month ago

laboon commented 1 month ago

The "Support" is showing as -6.1% (it is impossible to have negative support) for Referendum 763 on Polkadot. It is only occurring on this particular Referendum (or at least I don't see it on any other Referendum).

Polkassembly shows the correct support of 0.15% - https://polkadot.polkassembly.io/referenda/763

Screenshot 2024-05-13 at 11 37 32
TarikGul commented 1 month ago

Yea this is odd, it seems to be the only one where the calculation is off (By a large margin since it's negative...)

TarikGul commented 1 month ago

As a reference, this is where the results are calculated for the Charts: https://github.com/polkadot-js/apps/blob/master/packages/page-referenda/src/Referenda/Referendum.tsx#L101-L178