Skip to content

Commit

Permalink
fix undefine network key
Browse files Browse the repository at this point in the history
  • Loading branch information
MickWang committed Jun 21, 2024
1 parent 354f08e commit f38851f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/token/TokenSelectModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const changeToken = (item: any) => {
return;
}
const url = new URL(route.fullPath, window.location.origin);
url.searchParams.set("network", selectChain.value === "ALL" ? item.networkKey : selectChain.value);
url.searchParams.set("network", selectChain.value === "ALL" ? item.networkKey ?? "ethereum" : selectChain.value);
url.searchParams.set("tokenAddress", item.address);
window.location.href = url.toString();
};
Expand Down

0 comments on commit f38851f

Please sign in to comment.