You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for dReps, governance actions, or proposals , the search works fine without trailing spaces. However, if spaces are added at the end of the search text (e.g., when pasting copied text with extra spaces), the search fails.
Steps to reproduce
Navigate to the dRep directory page.
Copy any dRep ID or name.
Paste the text into the search bar and add a trailing space.
Observe that the "No DReps Found" message is displayed.
Actual behavior
Without trailing spaces:
The relevant dRep, governance action, or proposal card is displayed correctly.
With trailing spaces:
The search fails, and a "Not Found" component is displayed.
Expected behavior
The dRep, governance action, or proposal card should be displayed regardless of whether the search text has trailing spaces.
Suggested Fix
Add trim() functionality to the search input field to automatically remove any leading or trailing spaces from the search query before processing.
The text was updated successfully, but these errors were encountered:
Area
Other
Domain
gov.tools
Which wallet were you using?
No response
Context
When searching for dReps, governance actions, or proposals , the search works fine without trailing spaces. However, if spaces are added at the end of the search text (e.g., when pasting copied text with extra spaces), the search fails.
Steps to reproduce
Actual behavior
Without trailing spaces:
With trailing spaces:
Expected behavior
Suggested Fix
Add trim() functionality to the search input field to automatically remove any leading or trailing spaces from the search query before processing.
The text was updated successfully, but these errors were encountered: