Skip to content

Commit

Permalink
fix(apps/swap): switch tokens causing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
chillichelli committed Mar 23, 2023
1 parent 1f0e4c8 commit 90ca9cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/swap/ui/trade/TradeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ export const SwapProvider: FC<SwapProviderProps> = ({ children }) => {
pathname,
query: {
...query,
fromChainId: query.toChainId,
fromCurrency: query.toCurrency,
toChainId: query.fromChainId,
toCurrency: query.fromCurrency,
fromChainId: toChainId,
fromCurrency: toCurrency,
toChainId: fromChainId,
toCurrency: fromCurrency,
},
},
undefined,
Expand Down

0 comments on commit 90ca9cd

Please sign in to comment.