Bug Fix - Voting appears even after voting
Issue
Vote screen persists even after the user has voted. Votes have been lodged but the display of the vote screen on reload gives he impression that no action has been taken.
Resolution
Data has been submitted, the vote number progresses by one. The intended result is that if a user has submitted ratings the results page would display. How the code is expecting that to happen seems to change user to user, as this is a client side verification (possibly via cookies).
The simplest solution is to always start at the results screen and allow the user to navigate to the vote screen, this would not require verification on page load. The verification process for duplicate voting currently works and only happens on refresh of the page (maybe it’s a timing issue?)
Fix
Changed code to default to the RESULTS page on load. The user can then navagate to the vote page and submit ratings.
Additional Notes
Kevin noted that he only voted for 10 players. Although it was intended that ALL players would be rated, but is understandable that they may not wish to apply any score. Right now that defaults to 0 and skews averages. Maybe adding an option to omit that player from the submission would be fairer. This may need addressing before Round 1.