Authored by OF1706

less bug

... ... @@ -112,8 +112,8 @@ exports.getSearchData = (params, channel) => {
hasNextPage: searchHandler.handleNextPage(params, result[2].data.total),
shopEntry: result[3],
name: params.query,
suggest: ( termsSuggestion.length !== 0) ? termsSuggestion.join(',').split(',').splice(0, 3) : false,
changedQuery: result[2].data.isChangedQuery == 'Y',
suggest: (termsSuggestion.length !== 0) ? termsSuggestion.join(',').split(',').splice(0, 3) : false,
changedQuery: result[2].data.isChangedQuery === 'Y',
suggestFirst: finalResult.search.suggestFirst,
suggestSecond: finalResult.search.suggestSecond
});
... ...