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

[BUG] Toggle state toggles in db instead of local state #110

Open
aleksasiriski opened this issue Dec 29, 2024 · 0 comments
Open

[BUG] Toggle state toggles in db instead of local state #110

aleksasiriski opened this issue Dec 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aleksasiriski
Copy link
Member

Instead of toggling in the database, we should try to toggle based on the current local browser state (if the user sees "outside" and tries to toggle, it should try to put the person inside instead of toggling whatever is the current state in db).

This would solve a problem when 2 users try to toggle the same person at the same time.

@aleksasiriski aleksasiriski added the bug Something isn't working label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant