From 61a1a3af5329f4bcaca27b03530d3918f1fadfd8 Mon Sep 17 00:00:00 2001 From: Deryk DeGuzman Date: Wed, 28 Feb 2024 11:10:47 -0800 Subject: [PATCH] fix: pass title into closed chatbot button --- 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 = ({ ) : ( ); };