Skip to content

Commit

Permalink
Fixed key on Box
Browse files Browse the repository at this point in the history
  • Loading branch information
unakb committed Oct 3, 2024
1 parent 5ccdc51 commit a4d7153
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,9 @@ const Advocates = () => {
{hasCivilClaimants && (
<Box component="section" marginBottom={10}>
<SectionHeading title={formatMessage(strings.civilClaimants)} />
{workingCase.civilClaimants?.map((civilClaimant, index) => (
<Box component="section" marginBottom={5}>
<SelectCivilClaimantAdvocate
civilClaimant={civilClaimant}
key={index}
/>
{workingCase.civilClaimants?.map((civilClaimant) => (
<Box component="section" marginBottom={5} key={civilClaimant.id}>
<SelectCivilClaimantAdvocate civilClaimant={civilClaimant} />
</Box>
))}
</Box>
Expand Down

0 comments on commit a4d7153

Please sign in to comment.