fix: dont show USD price difference for wraps (#7610)
dont show stableconi price difference on wraps
This commit is contained in:
parent
dd4b2dc764
commit
1ffaf723de
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user