Skip to content

Commit

Permalink
Fix inconsistent re-renders for RuleCards
Browse files Browse the repository at this point in the history
  • Loading branch information
niktekusho committed May 19, 2024
1 parent f8f1ef4 commit 093d14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export function Rules({

return (
<ol className="flex flex-wrap gap-8">
{rules.map((rule, index) => (
<li key={index} className="min-w-[450px] flex-grow">
{rules.map((rule) => (
<li key={rule.id} className="min-w-[450px] flex-grow">
<RuleCard
foundCharacters={foundCharacters}
existingRule={rule}
Expand Down

0 comments on commit 093d14d

Please sign in to comment.