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

Fixed handle multiple winners in election results #20

Conversation

a-singh09
Copy link

Description:
This pull request fixes #19

Previously, the application was logging all the winners but only storing the first winner in the _winnerDetails array. This could lead to incorrect results in elections where there are multiple winners.

Changes:
There is a for loop that now pushes all the winners in the _winnerDetails array. This is how the frontend looks like if there are multiple winners
image

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.

2 participants