Skip to content

Commit

Permalink
fix: pass title into closed chatbot button
Browse files Browse the repository at this point in the history
  • Loading branch information
mrderyk committed Feb 28, 2024
1 parent ff52510 commit 61a1a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 : <CustomEmptyStateDisplay />}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const ChatView = ({
</div>
) : (
<button className="vrcbChatbotButton" onClick={() => setIsOpen(true)} style={{ zIndex }}>
Chat with your AI assistant
{title}
</button>
);
};

0 comments on commit 61a1a3a

Please sign in to comment.