Skip to content

Commit

Permalink
fix: 문서 페이지로 이동해도 Navbar 입력값 유지(#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgksqkr committed Jun 19, 2024
1 parent a897c57 commit b7d9a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useKeywordParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSearchParams } from 'next/navigation';
const useKeywordParams = () => {
const params = useSearchParams();

const searchKeyword = params.get('search') || '멋쟁이사자처럼';
const searchKeyword = params.get('search') || params.get('title') || '멋쟁이사자처럼';

return { searchKeyword };
};
Expand Down

0 comments on commit b7d9a4e

Please sign in to comment.