Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardozgz committed Oct 16, 2024
1 parent ed68cd5 commit 0caae39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function DescriptionArea({
/>
<div className="flex grow flex-col items-center justify-center overflow-hidden">
<div className=" w-[320px]">
<div className="text-2xl font-semibold">{demoServer.name}</div>
<div
className="w-full"
dangerouslySetInnerHTML={{ __html: demoServer.description }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ export function DiscordDemo() {
useEffect(() => {
if (!selectedServer) return;
setSelectedChannelIndex(
selectedServer.channels.findIndex((channel) =>
[ChannelType.GuildText, ChannelType.GuildAnnouncement].includes(
channel.type,
selectedServer.channels
.filter((channel) => !channel.showAsSkeleton)
.findIndex((channel) =>
[ChannelType.GuildText, ChannelType.GuildAnnouncement].includes(
channel.type,
),
),
),
);
}, [selectedServer]);

Expand Down

0 comments on commit 0caae39

Please sign in to comment.