diff --git a/src/components/messaging/MessageList.tsx b/src/components/messaging/MessageList.tsx index 909778af..c292d7be 100644 --- a/src/components/messaging/MessageList.tsx +++ b/src/components/messaging/MessageList.tsx @@ -62,32 +62,35 @@ function MessageList({ guild, channel }: Props) { return ( - - } - scrollableTarget="scrollable-div" - endMessage={ - -

Welcome to #{channel.name}!

-

- This is the start of the #{channel.name} channel. -

- -
- } - > - {channel.messages.grouped.map((group, index) => { - return ; - })} -
+ {channel.messages.count === 0 ? ( + + ) : ( + <> + + } + scrollableTarget="scrollable-div" + endMessage={ + +

Welcome to #{channel.name}!

+

+ This is the start of the #{channel.name} channel. +

+ +
+ } + > + {channel.messages.grouped.map((group, index) => { + return ; + })} +
+ + )}
); }