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>( ...@@ -71,9 +71,9 @@ export function useRoutingAPITrade<TTradeType extends TradeType>(
refetchOnMountOrArgChange: 2 * 60, refetchOnMountOrArgChange: 2 * 60,
}) })
const tradeResult = v2TradeResult ?? legacyAPITradeResult const [tradeResult, currentTradeResult, isError] = shouldUseRoutingApiV2
const currentTradeResult = currentLegacyAPITradeResult ?? currentV2TradeResult ? [v2TradeResult, currentV2TradeResult, isV2APIError]
const isError = isLegacyAPIError || isV2APIError : [legacyAPITradeResult, currentLegacyAPITradeResult, isLegacyAPIError]
const isCurrent = currentTradeResult === tradeResult 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