Skip to content

FIX: display alert when casting last remaining vote #33845

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

Merged
merged 2 commits into from
Jul 28, 2025

Conversation

Juanc1to
Copy link
Contributor

This corrects a slight logic bug that was preventing the alert when the number of remaining votes was zero.

@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/no-alert-is-displayed-after-casting-last-remaining-vote/373976/3

@SamSaffron
Copy link
Member

any chance we could add a small test here, I guess it is rather tricky to make it.

@Juanc1to
Copy link
Contributor Author

any chance we could add a small test here, I guess it is rather tricky to make it.

I'm not really wanting to develop a test for this, particularly as the change is so small and the test would be tricky, as you mention.

@jjaffeux
Copy link
Contributor

It's ok I added specs, thanks for the contribution @Juanc1to

@jjaffeux jjaffeux merged commit 8191216 into discourse:main Jul 28, 2025
16 checks passed
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/no-alert-is-displayed-after-casting-last-remaining-vote/373976/4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants