60p82u21t54k 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2503,7 +2503,9 @@ const getGetBankCardDataResponse = (raw) => {
2503
2503
  var _a2, _b2, _c2, _d2;
2504
2504
  return {
2505
2505
  id: item.id,
2506
- name: getCryptoName((_b2 = (_a2 = raw.mdCryptoDetail) == null ? void 0 : _a2.cryptoNetworks) != null ? _b2 : [], (_c2 = item.cn_id) != null ? _c2 : 0),
2506
+ name: (_c2 = (_b2 = raw.mdCryptoDetail) == null ? void 0 : _b2.cryptoNetworks[(_a2 = raw.mdCryptoDetail) == null ? void 0 : _a2.cryptoNetworks.findIndex(
2507
+ (network) => item.cn_id == network.id
2508
+ )].name) != null ? _c2 : "",
2507
2509
  networkId: (_d2 = item.cn_id) != null ? _d2 : 0,
2508
2510
  address: item.address
2509
2511
  };
@@ -2528,12 +2530,6 @@ const getGetBankCardDataResponse = (raw) => {
2528
2530
  bankCardLimit: raw.bankcardlimit
2529
2531
  };
2530
2532
  };
2531
- const getCryptoName = (networkList, networkId) => {
2532
- if (!networkList) return "";
2533
- const targetIndex = networkList.findIndex((network) => network.id == networkId);
2534
- const target = networkList[targetIndex];
2535
- return `${target.name} (${target.value.toUpperCase()})`;
2536
- };
2537
2533
  const modifyGetBankCardDataRequest = (requests) => {
2538
2534
  return requests;
2539
2535
  };