icon-community / CPS

Contribution Proposal System for ICON
7 stars 3 forks source link

bug: outstanding votes shown incorrectly #95

Closed R0bi7 closed 7 months ago

R0bi7 commented 9 months ago

Describe the bug Outstanding votes (Dashboard > Outstanding votes and Dashboard menu red indicator) are showing 3 (probably progress report count) even though vote has been cast.

To Reproduce Steps to reproduce the behavior:

  1. Go to CPS app
  2. Login with P-rep eligible for voting
  3. Checkout Dashboard outstanding votes and Dashboard menu item red indicator

Expected behavior After casting votes on all relevant progress reports and new proposals, the outstanding votes should be 0 and red indicator not shown anymore.

Screenshots image image

Desktop (please complete the following information):

Additional context I think origin of the problem is incorrect check and state update of outstanding votes for logged in user (P-rep/Validator)