Skip to content

Commit

Permalink
refactor: fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Aug 19, 2024
1 parent 116deca commit 950531c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/hooks/use-auto-complete.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const useAutoComplete = ({ content, delay = 1000 }: UseAutoCompleteProps)
setError(null);

try {
const response = await searchAutoComplete(debouncedContent, type, category);
const response = await searchAutoComplete(debouncedContent, category, type);
setResults(response.data);
} catch (err) {
setError('자동완성 api 호출 실패');
Expand Down
10 changes: 1 addition & 9 deletions src/ui/pages/maru-egg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ const MaruEgg: React.FC = () => {
>
면접등 기출문제
</PresetButton>
<PresetButton
onClick={() => handleCategoryButtonClick('INTERVIEW_PRACTICAL_TEST')}
isSelected={selectedCategoryButton === 'INTERVIEW_PRACTICAL_TEST'}
>
실기관련
</PresetButton>
</div>
</>
)}
Expand All @@ -98,9 +92,7 @@ const MaruEgg: React.FC = () => {
? '모집관련내용'
: category === 'PASSING_RESULT'
? '전년도 입시결과'
: category === 'PAST_QUESTIONS'
? '면접 등 기출문제'
: '실기관련'
: '면접 등 기출문제'
}
/>
)}
Expand Down

0 comments on commit 950531c

Please sign in to comment.