diff --git a/FU.SPA/src/services/searchService.js b/FU.SPA/src/services/searchService.js index f3140a9e..0445992c 100644 --- a/FU.SPA/src/services/searchService.js +++ b/FU.SPA/src/services/searchService.js @@ -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(','); }