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 @@ -235,7 +235,7 @@ export default function SearchTabFilters({ locations, achievements }) {
235
235
placeholder = "Search for a location"
236
236
name = { "location search" }
237
237
onChange = { ( q ) =>
238
- filterData ( q , locations , "name" , setLocationsData )
238
+ filterData ( q . trim ( ) , locations , "name" , setLocationsData )
239
239
}
240
240
/>
241
241
< TagList
@@ -295,7 +295,7 @@ export default function SearchTabFilters({ locations, achievements }) {
295
295
placeholder = "Search for an achievement"
296
296
name = { "achievements search" }
297
297
onChange = { ( q ) =>
298
- filterData ( q , achievements , "name" , setAchievementsData )
298
+ filterData ( q . trim ( ) , achievements , "name" , setAchievementsData )
299
299
}
300
300
/>
301
301
< 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