Skip to content

Commit

Permalink
fix: dont show est l1 fee when additional cost = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Mar 19, 2024
1 parent cebd20a commit 3126887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SwapForm/SwapModal/SwapDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export default function SwapDetails({
<RowBetween height="20px" style={{ gap: '16px' }}>
<RowFixed>
<TextDashed fontSize={12} fontWeight={400} color={theme.subText}>
{buildData?.additionalCostUsd ? (
{buildData?.additionalCostUsd && buildData?.additionalCostUsd !== '0' ? (
<MouseoverTooltip text={<Trans>L2 execution fee</Trans>} placement="right">
Est. L2 gas fee
</MouseoverTooltip>
Expand Down

0 comments on commit 3126887

Please sign in to comment.