Skip to content

Commit

Permalink
removed redirect in trade page
Browse files Browse the repository at this point in the history
  • Loading branch information
zavelevsky committed Jul 16, 2024
1 parent 1705430 commit 51e7cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/trade/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export const TradePage = () => {
const pairFound = !isTradePairError && isValidPair;

useEffect(() => {
if (search.base && search.quote && pairFound) return;
if (search.base && search.quote) return;
navigate({
search: { ...search, ...getLastVisitedPair() },
params: {},
replace: true,
});
}, [search, navigate, pairFound]);
}, [search, navigate]);

useEffect(() => {
if (baseToken && quoteToken) {
Expand Down

0 comments on commit 51e7cad

Please sign in to comment.