Skip to content

Commit

Permalink
fix: key prop spread in wallet card component
Browse files Browse the repository at this point in the history
  • Loading branch information
mastro993 committed Dec 17, 2024
1 parent a5f677c commit 0cbb13a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ts/features/wallet/utils/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ export const renderWalletCardFn = (
card: WalletCard,
stacked: boolean = false
) => {
const Component = walletCardComponentMapper[card.type];
const { key, category, type, ...cardProps } = card;
const Component = walletCardComponentMapper[type];
return Component ? (
<Component
testID={`walletCardTestID_${card.category}_${card.type}_${card.key}`}
cardProps={card}
key={key}
testID={`walletCardTestID_${category}_${type}_${key}`}
cardProps={cardProps}
isStacked={stacked}
/>
) : null;
Expand Down

0 comments on commit 0cbb13a

Please sign in to comment.