Skip to content

Commit

Permalink
chore: improve prompts presence condition #2250
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Feb 13, 2024
1 parent 3238a69 commit 432a422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/chatbot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export const XChatbot = (props: Chatbot) => {
</span>
</div>
))}
{props.prompt_suggestions &&
{props.prompt_suggestions && props.prompt_suggestions.length > 0 &&
<div className={css.suggestionsWrapper}>
{props.prompt_suggestions.map(({ name, label }) => (
<Fluent.DefaultButton key={name} onClick={() => handleSuggestion(name)} className={css.suggestion}>
Expand Down

0 comments on commit 432a422

Please sign in to comment.