Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
SKarolFolio committed Nov 22, 2024
1 parent 92d2be4 commit 6fc22b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/hooks/useSearchNavigationState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import state from '@state';
export const useSearchNavigationState = () => {
const [searchParams] = useSearchParams();
const querySearchParam = searchParams.get(SearchQueryParams.Query);
const searchBySearchParam = searchParams.get(SearchQueryParams.SearchBy) as SearchIdentifiers;
const searchBySearchParam = searchParams.get(SearchQueryParams.SearchBy);
const offsetSearchParam = searchParams.get(SearchQueryParams.Offset);

const setNavigationState = useSetRecoilState(state.search.navigationState);

useEffect(() => {
const generatedState = generateSearchParamsState(
querySearchParam,
searchBySearchParam,
searchBySearchParam as SearchIdentifiers,
offsetSearchParam as unknown as number,
);

Expand Down

0 comments on commit 6fc22b5

Please sign in to comment.