preserves whitespaces and newlines in message

This commit is contained in:
ajaythapliyal
2023-02-25 08:43:00 +05:30
parent 5f70bf286a
commit 4bc1a87fcf
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ const ConversationBubble = forwardRef<
{type === 'ERROR' && (
<img src={Alert} alt="alert" className="mr-2 inline" />
)}
<span>{message}</span>
<p className="whitespace-pre-wrap break-all">{message}</p>
</div>
</div>
);