From 21c69fbe6cffe258cdd510c59a32511f65fc438f Mon Sep 17 00:00:00 2001 From: Hanan Date: Wed, 28 Jan 2026 17:25:06 +0200 Subject: [PATCH] fix: sendClientResponseData type --- src/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 72539b6..ceb3d10 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -381,8 +381,8 @@ const useLayercodeAgent = ( const sendClientResponseText = useCallback((text: string) => { clientRef.current?.sendClientResponseText(text); }, []); - const sendClientResponseData = useCallback((text: string) => { - clientRef.current?.sendClientResponseData(text); + const sendClientResponseData = useCallback((data: any) => { + clientRef.current?.sendClientResponseData(data); }, []); const connect = useCallback(async () => { if (clientRef.current) { @@ -394,7 +394,7 @@ const useLayercodeAgent = ( clientRef.current = null; } - const nextConversationId = conversationIdRef.current !== undefined ? conversationIdRef.current : internalConversationId ?? null; + const nextConversationId = conversationIdRef.current !== undefined ? conversationIdRef.current : (internalConversationId ?? null); const client = createClient(nextConversationId ?? null);