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

Game History table data gets erased when reloaded. #16

Open
Lohit-pro opened this issue Jul 15, 2024 · 6 comments
Open

Game History table data gets erased when reloaded. #16

Lohit-pro opened this issue Jul 15, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Lohit-pro
Copy link
Contributor

Game History table data gets erased when reloaded.
probably using browser localstorage might be the solution.

@Lohit-pro Lohit-pro added the bug Something isn't working label Jul 15, 2024
@Lohit-pro
Copy link
Contributor Author

@manjhss try fixing this issue.

@manjhss
Copy link
Contributor

manjhss commented Jul 15, 2024

@Lohit-pro share screenshots or short vid, so I can understand what's the issue

@Lohit-pro
Copy link
Contributor Author

Lohit-pro commented Jul 15, 2024

@Lohit-pro share screenshots or short vid, so I can understand what's the issue

image
This is the data of user game history after he plays.

Next, when I reload the page, this happens (data in the table gets vanished)
image

This shouldn't happen. that's the bug. Hope you got to know the issue.
feel free to clarify doubts if any still @manjhss

use the concept of browser local storage. where data is stored in user's browser. This will solve the issue.

@Lohit-pro
Copy link
Contributor Author

Also if the player is new to FakeStake, display him default message saying "No history to show" or something like that.

@manjhss
Copy link
Contributor

manjhss commented Jul 15, 2024

@Lohit-pro i created a PR, check if there is any deployment error or just asking for review approval

@manjhss
Copy link
Contributor

manjhss commented Jul 15, 2024

@Lohit-pro having some issues in PR, I have no idea how to fix, tell me what can i do

Lohit-pro added a commit to Lohit-pro/FakeStake that referenced this issue Jul 17, 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
2 participants