diff --git a/frontend/src/apis/chat/chat.type.ts b/frontend/src/apis/chat/chat.type.ts index 3d8fcb7..0455fa5 100644 --- a/frontend/src/apis/chat/chat.type.ts +++ b/frontend/src/apis/chat/chat.type.ts @@ -85,6 +85,7 @@ export function mapMessage(w: ChatMessageWire): ChatMessage { export function mapInit(r: ChatInitResponse): ChatInitData { return { session_id: r.session_id, + session_status: r.session_status, item_id: r.item_id, quotation_id: r.quotation_id, item_name: r.item_name, diff --git a/frontend/src/features/chat/components/ChatMessage.tsx b/frontend/src/features/chat/components/ChatMessage.tsx index 363326b..2888fab 100644 --- a/frontend/src/features/chat/components/ChatMessage.tsx +++ b/frontend/src/features/chat/components/ChatMessage.tsx @@ -1,6 +1,8 @@ import { useEffect, useRef, memo } from 'react' import { cn } from '@/lib' import { useChatStore } from '@/features/chat/stores/useChatStore' +import { useChatInitStore } from '@/features/chat/stores/useChatInitStore' +import { SessionStatus } from '@/apis/negotiation/negotiation.type' import type { ChatMessage as ChatMessageType } from '@/features/chat/types' import { Indicator } from '@/features/chat/components/templates/Indicator' import { Summary } from '@/features/chat/components/templates/Summary' @@ -12,7 +14,7 @@ export function ChatMessage() { return (