Skip to content

Commit 1ffaf72

Browse files
authored
fix: dont show USD price difference for wraps (Uniswap#7610)
dont show stableconi price difference on wraps
1 parent dd4b2dc commit 1ffaf72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/Swap/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ export function Swap({
355355
const preTaxFiatValueTradeOutput = useUSDPrice(trade?.outputAmount)
356356
const [stablecoinPriceImpact, preTaxStablecoinPriceImpact] = useMemo(
357357
() =>
358-
routeIsSyncing || !isClassicTrade(trade)
358+
routeIsSyncing || !isClassicTrade(trade) || showWrap
359359
? [undefined, undefined]
360360
: [
361361
computeFiatValuePriceImpact(fiatValueTradeInput.data, fiatValueTradeOutput.data),
362362
computeFiatValuePriceImpact(fiatValueTradeInput.data, preTaxFiatValueTradeOutput.data),
363363
],
364-
[fiatValueTradeInput, fiatValueTradeOutput, preTaxFiatValueTradeOutput, routeIsSyncing, trade]
364+
[fiatValueTradeInput, fiatValueTradeOutput, preTaxFiatValueTradeOutput, routeIsSyncing, trade, showWrap]
365365
)
366366

367367
const { onSwitchTokens, onCurrencySelection, onUserInput, onChangeRecipient } = useSwapActionHandlers(dispatch)

0 commit comments

Comments
 (0)