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

Fixed Leaderboard Search a bit #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arora-archit
Copy link

Originally, the search would not work properly if you entered a wrong string and then fixed it due to directly modifying the data and not preserving it.

This is how it worked originally:
https://github.com/user-attachments/assets/936cd32f-e3fa-442f-a839-7904998421ee

After changes:
https://github.com/user-attachments/assets/a026a258-4b20-4c62-8379-aa028bef9073

@arora-archit arora-archit changed the title Fixed Search a bit Fixed Leaderboard Search a bit Jan 1, 2025
.select()
.order("points", { ascending: false });
if (error) throw error;
setOriginalData(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

You can just modify the function defined in the outer scope instead of redfining it to add this

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