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

Format hashes input #146

Closed
victorgcramos opened this issue Nov 23, 2022 · 2 comments
Closed

Format hashes input #146

victorgcramos opened this issue Nov 23, 2022 · 2 comments

Comments

@victorgcramos
Copy link
Member

The "Search for hashes" input tells users that it accepts multiple hashes. However, if users type hashes with blank spaces,
the form will redirect to https://timestamp.decred.org/results#hashes=<hash-1>,%20<hash-2>, which throws a JSON parse error and enters on an infinite loading state, as described below:

Unhandled Promise Rejection: SyntaxError: JSON Parse error: Unexpected identifier "Invalid"

Screen Shot 2022-11-23 at 6 03 01 PM

I think we should format these inputs (or validate them), so users don't get redirected to a loading page.

@tiagoalvesdulce
Copy link
Member

this behavior will be changed in the redesign

@tiagoalvesdulce
Copy link
Member

tiagoalvesdulce commented Mar 2, 2023

Not needed after #151

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

No branches or pull requests

2 participants