Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix typing jsx ChatInterface.tsx (#468)

808vita0e3c86ad5930
diff --git a/frontend/src/components/ChatInterface.tsx b/frontend/src/components/ChatInterface.tsx
index 4efa710209..a35ace40e5 100644
--- a/frontend/src/components/ChatInterface.tsx
+++ b/frontend/src/components/ChatInterface.tsx
@@ -24,11 +24,16 @@ interface ITypingChatProps {
*/
function TypingChat({ msg }: ITypingChatProps) {
return (
- msg?.content && (
- <Card>
- <CardBody>{useTypingEffect([msg?.content], { loop: false })}</CardBody>
- </Card>
- )
+ // eslint-disable-next-line react/jsx-no-useless-fragment
+ <>
+ {msg?.content && (
+ <Card>
+ <CardBody>
+ {useTypingEffect([msg?.content], { loop: false })}
+ </CardBody>
+ </Card>
+ )}
+ </>
);
}