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

fix: fix vote button being incorrectly disabled #1122

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

emccorson
Copy link
Collaborator

This was caused by returning undefined from react query to signal that the user has no existing vote, but returning undefined is disallowed by react query.

@emccorson emccorson marked this pull request as ready for review September 18, 2024 11:07
Copy link
Collaborator

@jurevans jurevans left a comment

Choose a reason for hiding this comment

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

LGTM! Tested locally, was able to vote!

@emccorson emccorson force-pushed the react-query-undefined-voting-fix branch from dd1c0a7 to efcb385 Compare September 18, 2024 16:54
This was caused by returning undefined from react query to signal that
the user has no existing vote, but returning undefined is disallowed by
react query.
@emccorson emccorson force-pushed the react-query-undefined-voting-fix branch from efcb385 to 9856bb9 Compare September 18, 2024 17:12
@emccorson emccorson merged commit 9856bb9 into main Sep 18, 2024
9 checks passed
@emccorson emccorson deleted the react-query-undefined-voting-fix branch September 18, 2024 17:12
@github-actions github-actions bot temporarily deployed to production September 18, 2024 17:18 Inactive
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