diff --git a/src/App.tsx b/src/App.tsx index 683a5af..fc378bd 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -39,7 +39,7 @@ const PageTracker = () => { { path: "/mbti-result", page: "바이럴 콘텐츠 결과" }, { path: "/chat-recommend", page: "대화주제추천" }, { path: "/chat-tips", page: "대화 꿀팁" }, - { path: "/chat-temporature", page: "대화 온도" } + { path: "/chat-temperature", page: "대화 온도" } ]; useEffect(() => { @@ -89,7 +89,7 @@ const App = () => { useEffect(() => { initGA(); - if (parsedAuth) checkSession(); + if (parsedAuth.accessToken) checkSession(); }, []); return ( diff --git a/src/pages/ChatTemperature.tsx b/src/pages/ChatTemperature.tsx index abd74a9..8037eaa 100644 --- a/src/pages/ChatTemperature.tsx +++ b/src/pages/ChatTemperature.tsx @@ -16,7 +16,7 @@ const ChatTemperature = () => { const [temperature, setTemperature] = useState(""); useEffect(() => { - const getTemporature = async () => { + const getTemperature = async () => { try { const res = await instance.get( `/api/addition/temperature/${conversationId}` @@ -27,7 +27,7 @@ const ChatTemperature = () => { } }; - getTemporature(); + getTemperature(); }, []); return (