{!mine && this.renderAvatar(avatar, styles)}
- {childrenExist(children) ? children : content}
+ {content}
{mine && this.renderAvatar(avatar, styles)}
)
diff --git a/test/specs/components/Chat/ChatMessage-test.tsx b/test/specs/components/Chat/ChatMessage-test.tsx
index db6f8bd077..c7659afcd2 100644
--- a/test/specs/components/Chat/ChatMessage-test.tsx
+++ b/test/specs/components/Chat/ChatMessage-test.tsx
@@ -11,8 +11,8 @@ describe('ChatMessage', () => {
describe('avatar', () => {
it('creates an Avatar component when the avatar shorthand is provided', () => {
- const name = 'AB'
- const chatMsg = mountWithProvider(