Skip to content

Commit

Permalink
fix: NaN when no gas cost is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jul 18, 2022
1 parent c68c558 commit 2adea9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const SwapRouteCard: React.FC<SwapRouteCardProps & BoxProps> = ({
>
<Box>
<Typography fontSize={18} fontWeight="500">
{t(`swap.currency`, { value: route.gasCostUSD })}
{t(`swap.currency`, { value: route.gasCostUSD ?? 0 })}
</Typography>
<Typography fontSize={12} color="text.secondary">
{t(`swap.gas`)}
Expand Down

0 comments on commit 2adea9a

Please sign in to comment.