Skip to content

Commit

Permalink
fix: possible duplicate keys
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Mar 24, 2023
1 parent fb75407 commit 6d294ed
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ export const SwapRouteCardEssentials: React.FC<
title={
<Box component="span">
{t(`tooltip.estimatedNetworkFee`)}
{gasCosts.map((gas) => (
<Typography
fontSize={11}
key={`${gas.token.address}${gas.token.symbol}`}
>
{gasCosts.map((gas, index) => (
<Typography fontSize={11} key={`${gas.token.address}${index}`}>
{gas.amount?.toFixed(9)} {gas.token.symbol} (
{t(`format.currency`, { value: gas.amountUSD })})
</Typography>
Expand Down Expand Up @@ -59,11 +56,8 @@ export const SwapRouteCardEssentials: React.FC<
title={
<Box component="span">
{t(`tooltip.additionalProviderFee`)}
{feeCosts.map((fee) => (
<Typography
fontSize={11}
key={`${fee.token.address}${fee.token.symbol}`}
>
{feeCosts.map((fee, index) => (
<Typography fontSize={11} key={`${fee.token.address}${index}`}>
{fee.amount?.toFixed(9)} {fee.token.symbol} (
{t(`format.currency`, { value: fee.amountUSD })})
</Typography>
Expand Down

0 comments on commit 6d294ed

Please sign in to comment.