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

added delete button to cards. Fixed issue where newly created games didn't show properly #31

Merged
merged 3 commits into from
May 26, 2024

Conversation

justinstoner2
Copy link
Collaborator

newly created games wouldn't show on my trivia because gameswithdetails only got called if usergames.length==0. Changed it so it would call it when first loading the page then set loaded boolean to true so queries wouldn't continuously run. that boolean gets rest to false as soon as the sate hook gets unmounted. I was having issues with setting the user.id to the game so currently all created games are getting set to userID of 1. need to fix.

Copy link
Collaborator

@demuthsa demuthsa left a comment

Choose a reason for hiding this comment

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

Venmoed me $$ to approve without review so not my fault if it doesn't work

@demuthsa demuthsa merged commit 20f1050 into main May 26, 2024
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