This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export default function SearchTabFilters({ locations, achievements }) {
241
241
placeholder = "Search for a location"
242
242
name = { "location search" }
243
243
onChange = { ( q ) =>
244
- filterData ( q , locations , "name" , setLocationsData )
244
+ filterData ( q . trim ( ) , locations , "name" , setLocationsData )
245
245
}
246
246
/>
247
247
< TagList
@@ -306,7 +306,7 @@ export default function SearchTabFilters({ locations, achievements }) {
306
306
placeholder = "Search for an achievement"
307
307
name = { "achievements search" }
308
308
onChange = { ( q ) =>
309
- filterData ( q , achievements , "name" , setAchievementsData )
309
+ filterData ( q . trim ( ) , achievements , "name" , setAchievementsData )
310
310
}
311
311
/>
312
312
< TagList
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export default function SuggestionBox({
86
86
const [ suggestions , setSuggestions ] = React . useState ( [ ] ) ;
87
87
const [ value , setValue ] = React . useState ( "" ) ;
88
88
89
- const onChange = ( event , { newValue } ) => setValue ( newValue ) ;
89
+ const onChange = ( event , { newValue } ) => setValue ( newValue . trim ( ) ) ;
90
90
91
91
const onSuggestionsFetchRequested = async ( { value } ) => {
92
92
if ( purpose === "skills" ) {
You can’t perform that action at this time.
0 commit comments