Skip to content

Commit

Permalink
Merge pull request #75 from storyprotocol/sam/fix-license-accordion-l…
Browse files Browse the repository at this point in the history
…ist-key

add index to license accordion license terms list item key
  • Loading branch information
samfairbairn authored Nov 20, 2024
2 parents 3ec7ecc + 80339ec commit 668d554
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ function IpLicenseAccordion({ size = "medium" }: IpLicenseAccordionProps) {
<div className={"sk-flex sk-flex-col sk-w-full sk-min-w-48"}>
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any */}
{(licenseTermsData as unknown as any[])?.map((license, index) => (
<div key={license.id} className="sk-flex sk-flex-col sk-w-full">
<div key={`${license.id}-${index}`} className="sk-flex sk-flex-col sk-w-full">
<div className={licensesStyles({ size })} onClick={() => setExpanded(expanded === index ? null : index)}>
<span>
{getPilFlavorByLicenseTerms(license.licenseTerms)}{" "}

0 comments on commit 668d554

Please sign in to comment.