From 1ffaf723de84673351a78093dacb1d58c156ab87 Mon Sep 17 00:00:00 2001 From: Tina <59578595+tinaszheng@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:46:16 -0500 Subject: [PATCH] fix: dont show USD price difference for wraps (#7610) dont show stableconi price difference on wraps --- src/pages/Swap/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Swap/index.tsx b/src/pages/Swap/index.tsx index f65819ca8a..1968ac6330 100644 --- a/src/pages/Swap/index.tsx +++ b/src/pages/Swap/index.tsx @@ -355,13 +355,13 @@ export function Swap({ const preTaxFiatValueTradeOutput = useUSDPrice(trade?.outputAmount) const [stablecoinPriceImpact, preTaxStablecoinPriceImpact] = useMemo( () => - routeIsSyncing || !isClassicTrade(trade) + routeIsSyncing || !isClassicTrade(trade) || showWrap ? [undefined, undefined] : [ computeFiatValuePriceImpact(fiatValueTradeInput.data, fiatValueTradeOutput.data), computeFiatValuePriceImpact(fiatValueTradeInput.data, preTaxFiatValueTradeOutput.data), ], - [fiatValueTradeInput, fiatValueTradeOutput, preTaxFiatValueTradeOutput, routeIsSyncing, trade] + [fiatValueTradeInput, fiatValueTradeOutput, preTaxFiatValueTradeOutput, routeIsSyncing, trade, showWrap] ) const { onSwitchTokens, onCurrencySelection, onUserInput, onChangeRecipient } = useSwapActionHandlers(dispatch)