Skip to content

Commit

Permalink
fix search query
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtg-nav committed Mar 2, 2021
1 parent f9fd49b commit 47fb4fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search/searchReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ function* search() {
try {
yield put({type: RESET_PAGINATION});
const state = yield select();
const query = toApiSearchQuery(state.searchQuery);

logAmplitudeEvent('Utførte søk',{ query });
logAmplitudeEvent('Utførte søk',{ query: state.searchQuery });

const query = toApiSearchQuery(state.searchQuery);
const searchResult = yield call(fetchSearch, query);
yield put({type: SEARCH_SUCCESS, response: searchResult});
} catch (e) {
Expand Down

0 comments on commit 47fb4fb

Please sign in to comment.