Skip to content

Commit

Permalink
refactor: passing result keyword include valid
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Dec 19, 2024
1 parent e4ca134 commit aa00c89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks/use-chat-form.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ const useChatForm = () => {

const fetchResponse = async () => {
if (selectedId === undefined) {
if (content.indexOf('결과') !== -1 || content.indexOf('입결') !== -1) {
return await postQuestion('PASSING_RESULT', type, content);
}
return await postQuestion(category, type, content);
} else {
return await SearchById(selectedId);
Expand Down

0 comments on commit aa00c89

Please sign in to comment.