From 42d2c5ef66a146af793c73c121829c9c28d42843 Mon Sep 17 00:00:00 2001 From: KillariDev Date: Mon, 12 Feb 2024 09:39:32 +0200 Subject: [PATCH] clear trade state when user clears input/output --- src/state/routing/useRoutingAPITrade.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state/routing/useRoutingAPITrade.ts b/src/state/routing/useRoutingAPITrade.ts index ea509a8beea..9b97f84355e 100644 --- a/src/state/routing/useRoutingAPITrade.ts +++ b/src/state/routing/useRoutingAPITrade.ts @@ -67,7 +67,7 @@ export function useRoutingAPITrade( useEffect(() => { const args = queryArgs if (skipFetch) return - if (args === skipToken) return + if (args === skipToken) return setResult({ state: TradeState.INVALID, trade: undefined, currentTrade: undefined }) async function updateResults(args: GetQuoteArgs) { if (document.hidden) return const walletProvider = provider