Commit a03231d3 authored by Tina's avatar Tina Committed by GitHub

fix: Bug with flipping ura feature flag on/off in dev mode (#6686)

fix bug
parent 72936322
......@@ -71,9 +71,9 @@ export function useRoutingAPITrade<TTradeType extends TradeType>(
refetchOnMountOrArgChange: 2 * 60,
})
const tradeResult = v2TradeResult ?? legacyAPITradeResult
const currentTradeResult = currentLegacyAPITradeResult ?? currentV2TradeResult
const isError = isLegacyAPIError || isV2APIError
const [tradeResult, currentTradeResult, isError] = shouldUseRoutingApiV2
? [v2TradeResult, currentV2TradeResult, isV2APIError]
: [legacyAPITradeResult, currentLegacyAPITradeResult, isLegacyAPIError]
const isCurrent = currentTradeResult === tradeResult
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment