Skip to content

Commit

Permalink
Merge pull request #2565 from myxmaster/add_key_props
Browse files Browse the repository at this point in the history
PaymentPath: Add key props
  • Loading branch information
kaloudis authored Nov 23, 2024
2 parents afd044f + 215da2a commit 9c51e18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/PaymentPath.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export default class PaymentPath extends React.Component<
if (enhancedPath.length > 1) {
hops.push(
<Hop
key={`hop-${index}`}
index={index}
title={title}
path={path}
Expand All @@ -290,6 +291,7 @@ export default class PaymentPath extends React.Component<
if (expanded.get(index) || enhancedPath.length === 1) {
hops.push(
<ExpandedHop
key={`origin-${index}`}
pathIndex={0}
path={path}
hop={origin}
Expand All @@ -308,6 +310,7 @@ export default class PaymentPath extends React.Component<
(expanded.get(index) || enhancedPath.length === 1) &&
hops.push(
<ExpandedHop
key={`hop-${index}-${pathIndex}`}
pathIndex={pathIndex + 1}
path={path}
hop={hop}
Expand Down

0 comments on commit 9c51e18

Please sign in to comment.