Skip to content

Commit

Permalink
fix(InfiniteScrollGuilds): add unique keys
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 26, 2024
1 parent 9755dea commit 8630233
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export const InfiniteScrollGuilds = () => {
<section className="grid gap-2">
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{isLoading
? Array(PAGE_SIZE).fill(<GuildCardSkeleton />)
? // biome-ignore lint: it's safe to use index as key in this case
[...Array(PAGE_SIZE)].map((_, i) => <GuildCardSkeleton key={i} />)
: guilds.map((guild, _i) => (
<GuildCard key={guild.urlName} guild={guild} />
))}
Expand Down

0 comments on commit 8630233

Please sign in to comment.