Skip to content

Commit

Permalink
Fix leading and trailing space search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytes1027 committed Jan 23, 2024
1 parent bab4cfb commit 99e01d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FU.SPA/src/services/searchService.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import AuthService from './authService';
*/
const searchPosts = async (query) => {
let queryString = '';
queryString += 'keywords=' + encodeURIComponent(query.keywords);
queryString += 'keywords=' + encodeURIComponent(query.keywords.trim());
if (query.games.length > 0) {
queryString += '&games=' + query.games.map((g) => String(g.id)).join(',');
}
Expand Down

0 comments on commit 99e01d3

Please sign in to comment.