diff --git a/packages/extension/src/ui/action/views/swap/index.vue b/packages/extension/src/ui/action/views/swap/index.vue
index 90fdf543f..8d92110f5 100644
--- a/packages/extension/src/ui/action/views/swap/index.vue
+++ b/packages/extension/src/ui/action/views/swap/index.vue
@@ -10,52 +10,112 @@
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -241,10 +301,10 @@ onMounted(async () => {
if (props.network.name === net) {
thisNetwork =
swapToTokens.all[net as unknown as SupportedNetworkName].length ===
- 1
+ 1
? getNetworkInfoByName(
- NetworkNames.Ethereum as unknown as SupportedNetworkName
- )
+ NetworkNames.Ethereum as unknown as SupportedNetworkName
+ )
: netInfo;
}
toNetworks.value.push(netInfo);
@@ -566,13 +626,13 @@ const sendAction = async () => {
const marketData = new MarketData();
const fromPrice = fromToken.value!.cgId
? await marketData
- .getMarketData([fromToken.value!.cgId])
- .then((res) => res[0]!.current_price)
+ .getMarketData([fromToken.value!.cgId])
+ .then((res) => res[0]!.current_price)
: 0;
const toPrice = toToken.value!.cgId
? await marketData
- .getMarketData([toToken.value!.cgId])
- .then((res) => res[0]!.current_price)
+ .getMarketData([toToken.value!.cgId])
+ .then((res) => res[0]!.current_price)
: 0;
const localFromToken = { ...fromToken.value! };
const localToToken = { ...toToken.value! };
@@ -650,7 +710,6 @@ const sendAction = async () => {