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 bug where multiple notifications are sent #7

Merged
merged 1 commit into from
Nov 7, 2021

Conversation

jackdevey
Copy link
Contributor

@jackdevey jackdevey commented Nov 7, 2021

The bug arises as we didn't check the existence of the event in the beforehand vcstate variable

using if(updated.x && !before.x) fixes the issue.

@jackdevey jackdevey merged commit 81867d2 into main Nov 7, 2021
@jackdevey jackdevey deleted the fix-multiple-notifs-bug branch November 7, 2021 17:44
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