diff --git a/src/pages/Chat.tsx b/src/pages/Chat.tsx index 344a1ab..8d5bd3c 100644 --- a/src/pages/Chat.tsx +++ b/src/pages/Chat.tsx @@ -36,7 +36,7 @@ const Chat = () => { const [isOpen, setIsOpen] = useState(false); const bottomRef = useRef(null); - const chatTitle = mode === "fastFriend" ? `${mbti}와 대화` : `${name}과 대화`; + const chatTitle = name ? `${name}과 대화` : `${mbti}와 대화`; const assistantImgUrl = pickMbtiImage(mbti); const storageKey = `chatMessages_${id}`; diff --git a/src/pages/SelectInfo.tsx b/src/pages/SelectInfo.tsx index b1db917..9b32639 100644 --- a/src/pages/SelectInfo.tsx +++ b/src/pages/SelectInfo.tsx @@ -216,7 +216,8 @@ const SelectInfo = () => { state: { mbti, mode: type, - id: responseData + id: responseData, + name } }); }