From 037b275e472c436f30e26f8c4dfe436511f4b476 Mon Sep 17 00:00:00 2001 From: Choi JunHo Date: Mon, 2 Dec 2024 12:28:23 +0900 Subject: [PATCH] refactor: detail type question add korean type --- src/hooks/use-preset-button.hooks.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/use-preset-button.hooks.ts b/src/hooks/use-preset-button.hooks.ts index f06be8c..c2ee5ec 100644 --- a/src/hooks/use-preset-button.hooks.ts +++ b/src/hooks/use-preset-button.hooks.ts @@ -63,7 +63,10 @@ const usePresetButton = () => { addMessage({ content: 'loading', role: 'system' }); setLoading(true); - const response = await fetchResponse(`${detailTypeName}에 대해 설명해줘 단 아래의 출력 형식을 반드시 따라줘 + const korean_type = type === 'SUSI' ? '수시' : type === 'JEONGSI' ? '정시' : '편입'; + + const response = + await fetchResponse(`${korean_type}의 ${detailTypeName}전형에 대해 설명해줘 단 아래의 출력 형식을 반드시 따라줘 **[전형제목]** **[전형방법]** **[지원자격]**