Skip to content

Commit

Permalink
update choices showing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlee64 committed Nov 18, 2024
1 parent bcba14c commit dd99550
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ChatView = ({chat}: ChatViewProps) => {
messages={chat.request?.messages || []}
scrollLastMessage={scrollLastMessage}
/>
{chatResult && chatResult.choices && (
{chatResult?.choices && chatResult.choices.length > 0 && (
<>
<span className="mt-16 text-sm font-semibold text-moon-800">
Response
Expand Down

0 comments on commit dd99550

Please sign in to comment.