From 7ed08f9fe1a27bcd6aa0d1a831d3cec8802fab85 Mon Sep 17 00:00:00 2001 From: mrderyk Date: Wed, 28 Feb 2024 12:52:19 -0800 Subject: [PATCH] fix: pass title into closed chatbot button (#14) --- docs/src/index.tsx | 2 +- src/components/ChatView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/index.tsx b/docs/src/index.tsx index f4f07c3..d7a68a3 100644 --- a/docs/src/index.tsx +++ b/docs/src/index.tsx @@ -189,7 +189,7 @@ const App = () => { corpusIds={corpusIds.length === 0 ? DEFAULT_CORPUS_IDS : corpusIds} customerId={customerId === "" ? DEFAULT_CUSTOMER_ID : customerId} apiKey={apiKey === "" ? DEFAULT_API_KEY : apiKey} - title={title} + title={title === "" ? undefined : title} placeholder={placeholder} inputSize={inputSize} emptyStateDisplay={emptyStateJsx === "" ? undefined : } diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsx index 48be598..84e0456 100644 --- a/src/components/ChatView.tsx +++ b/src/components/ChatView.tsx @@ -173,7 +173,7 @@ export const ChatView = ({ ) : ( ); };