Skip to content

Commit

Permalink
(DOCSP-32434) [UI] Add error text for non-modal input (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlarew authored Aug 18, 2023
1 parent 611a50d commit 5de9282
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chat-ui/src/Chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ export function Chatbot() {
setMenuOpen(false);
}}
/>

{inputTextError ? <ErrorText>{inputTextError}</ErrorText> : null}

{menuOpen ? (
<SuggestedPrompts
prompts={showSuggestedPrompts ? suggestedPrompts : []}
Expand Down

0 comments on commit 5de9282

Please sign in to comment.