Skip to content

Commit

Permalink
#1136 - remove the fallback value for targetAsset when it is not expl…
Browse files Browse the repository at this point in the history
…icitly provided
  • Loading branch information
sebastianscatularo committed Oct 17, 2024
1 parent 28d7ea9 commit b92fd0c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/connect/src/hooks/useQueryParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ export const useQueryParams = () => {
preferredRouteName: getRoute(query) ?? getPreferredValue(query),
sourceToken:
getTokenValue(query, "asset") ?? getTokenValue(query, "sourceAsset"),
targetToken:
getTokenValue(query, "targetAsset") ??
getTokenValue(query, "asset") ??
getTokenValue(query, "sourceAsset"),
targetToken: getTokenValue(query, "targetAsset"),
sourceChain: getChainValue(query, "sourceChain"),
targetChain: getChainValue(query, "targetChain"),
requiredNetwork: getChainValue(query, "requiredNetwork"),
Expand Down

0 comments on commit b92fd0c

Please sign in to comment.