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

Fix bridge select #24

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading