Skip to content

Commit

Permalink
fix: routing exclusion
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris committed Jan 29, 2025
1 parent fe5f5a3 commit bb80c0b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/views/Bridge/hooks/useSelectRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,14 @@ export function useSelectRoute() {
toChain: toChainId,
externalProjectId,
})
: findNextBestRoute(["toChain"], {
toChain: toChainId,
externalProjectId: undefined,
});
: findNextBestRoute(
[
"fromChain",
"toChain",
isSwap ? "swapTokenSymbol" : "inputTokenSymbol",
],
filterBy
);

// If no route found, fall back to previous logic
if (!route) {
Expand Down

0 comments on commit bb80c0b

Please sign in to comment.