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

fixes issue#150 #593

Merged
merged 1 commit into from
Jul 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client/src/components/FiltersSideMenu/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default function SearchTabFilters({ locations, achievements }) {
placeholder="Search for a location"
name={"location search"}
onChange={(q) =>
filterData(q, locations, "name", setLocationsData)
filterData(q.trim(), locations, "name", setLocationsData)
}
/>
<TagList
Expand Down Expand Up @@ -295,7 +295,7 @@ export default function SearchTabFilters({ locations, achievements }) {
placeholder="Search for an achievement"
name={"achievements search"}
onChange={(q) =>
filterData(q, achievements, "name", setAchievementsData)
filterData(q.trim(), achievements, "name", setAchievementsData)
}
/>
<TagList
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/SuggestionBox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function SuggestionBox({
const [suggestions, setSuggestions] = React.useState([]);
const [value, setValue] = React.useState("");

const onChange = (event, { newValue }) => setValue(newValue);
const onChange = (event, { newValue }) => setValue(newValue.trim());

const onSuggestionsFetchRequested = async ({ value }) => {
if (purpose === "skills") {
Expand Down