Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 0f67320

Browse files
Merge pull request #593 from topcoder-platform/issues/timor/150
fixes issue#150
2 parents 3aab2b3 + 88003c4 commit 0f67320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/components/FiltersSideMenu/filters.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export default function SearchTabFilters({ locations, achievements }) {
241241
placeholder="Search for a location"
242242
name={"location search"}
243243
onChange={(q) =>
244-
filterData(q, locations, "name", setLocationsData)
244+
filterData(q.trim(), locations, "name", setLocationsData)
245245
}
246246
/>
247247
<TagList
@@ -306,7 +306,7 @@ export default function SearchTabFilters({ locations, achievements }) {
306306
placeholder="Search for an achievement"
307307
name={"achievements search"}
308308
onChange={(q) =>
309-
filterData(q, achievements, "name", setAchievementsData)
309+
filterData(q.trim(), achievements, "name", setAchievementsData)
310310
}
311311
/>
312312
<TagList

client/src/components/SuggestionBox/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function SuggestionBox({
8686
const [suggestions, setSuggestions] = React.useState([]);
8787
const [value, setValue] = React.useState("");
8888

89-
const onChange = (event, { newValue }) => setValue(newValue);
89+
const onChange = (event, { newValue }) => setValue(newValue.trim());
9090

9191
const onSuggestionsFetchRequested = async ({ value }) => {
9292
if (purpose === "skills") {

0 commit comments

Comments
 (0)