Skip to content

Conversation

@Smootw12
Copy link

Hey Josh,

If a previous user vote exists and the vote for which the request failed is the opposite of the previous one, you need to reset the votesAmt twice! Essentially, it has to be like the onMutate logic but inverted. However, I found a shortcut by using the onPrevious hook, and it makes the code more readable too!

P.S: Please be patient; this is my first pull request! Love the content, by the way <3!

@Smootw12 Smootw12 changed the title fixed: onError logic fix: onError logic Dec 23, 2023
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