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

Commit 88003c4

Browse files
committed
fixes issue#150
1 parent f450db4 commit 88003c4

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
@@ -235,7 +235,7 @@ export default function SearchTabFilters({ locations, achievements }) {
235235
placeholder="Search for a location"
236236
name={"location search"}
237237
onChange={(q) =>
238-
filterData(q, locations, "name", setLocationsData)
238+
filterData(q.trim(), locations, "name", setLocationsData)
239239
}
240240
/>
241241
<TagList
@@ -295,7 +295,7 @@ export default function SearchTabFilters({ locations, achievements }) {
295295
placeholder="Search for an achievement"
296296
name={"achievements search"}
297297
onChange={(q) =>
298-
filterData(q, achievements, "name", setAchievementsData)
298+
filterData(q.trim(), achievements, "name", setAchievementsData)
299299
}
300300
/>
301301
<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)