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

Allow all players to see "waiting for votes" message #722

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bjb568
Copy link
Contributor

@bjb568 bjb568 commented Dec 8, 2024

Code has not been tested, but the change is simple, it just removes the if statement.

Comment on lines -166 to -172
// If user has voted already
if (
indexOfPlayer !== undefined &&
this.thisRoom.playersYetToVote.indexOf(
this.thisRoom.playersInGame[indexOfPlayer].username,
) === -1
) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the "If user has voted already" branch was identical to the "If we are spectator" branch so the entire function can be replaced with the contents of either branch.

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.

1 participant