Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Fix bridge select (#24)
Browse files Browse the repository at this point in the history
* Fix bridge select

* Reload after change token category
  • Loading branch information
JayJay1024 authored Apr 16, 2024
1 parent 31019e1 commit 0577697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/transfer-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function Component() {

const [bridge, cross] = useMemo(() => {
const cross = sourceToken.cross.find(
(c) => c.target.network === targetChain.network && c.target.symbol === targetToken.symbol,
(c) => c.target.network === targetChain.network && c.target.symbol === targetToken.symbol && !c.hidden,
);
const bridge = cross
? bridgeFactory({
Expand Down
1 change: 1 addition & 0 deletions src/providers/transfer-provider-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default function TransferProviderV2({ children }: PropsWithChildren<unkno
(_token: typeof token) => {
setToken(_token);
changeUrl(true);
location.reload();
},
[changeUrl, setToken],
);
Expand Down

0 comments on commit 0577697

Please sign in to comment.