@rabbitio/ui-kit 1.0.0-beta.35 → 1.0.0-beta.37

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.
@@ -2995,7 +2995,7 @@ var SwapspaceSwapProvider = /*#__PURE__*/function (_SwapProvider) {
2995
2995
  }
2996
2996
  _this = _SwapProvider.call(this) || this;
2997
2997
  _this._supportedCoins = [];
2998
- _this._URL = apiKeysProxyUrl + "/swapspace";
2998
+ _this._URL = "" + apiKeysProxyUrl;
2999
2999
  _this._maxRateDigits = 20;
3000
3000
  _this.useRestrictedCoinsSet = useRestrictedCoinsSet;
3001
3001
  _this._customCoinBuilder = customCoinBuilder;
@@ -3626,13 +3626,18 @@ var SwapspaceSwapProvider = /*#__PURE__*/function (_SwapProvider) {
3626
3626
  };
3627
3627
  _proto.getExtraIdNameIfPresent = function getExtraIdNameIfPresent(asset) {
3628
3628
  try {
3629
- var _assetData$extraIdNam;
3630
3629
  var assetData = this._supportedCoins.find(function (i) {
3631
3630
  var _i$coin4;
3632
3631
  return ((_i$coin4 = i.coin) == null ? void 0 : _i$coin4.ticker) === (asset == null ? void 0 : asset.ticker);
3633
3632
  });
3634
- // We return "ID" if the extraIdName is empty
3635
- return assetData != null && assetData.hasExtraId ? (_assetData$extraIdNam = assetData == null ? void 0 : assetData.extraIdName) != null ? _assetData$extraIdNam : "ID" : null;
3633
+ if (assetData != null && assetData.hasExtraId) {
3634
+ if ((assetData == null ? void 0 : assetData.extraIdName) == null || (assetData == null ? void 0 : assetData.extraIdName) === "") {
3635
+ // We return some default name if the extraIdName is empty
3636
+ return "ID";
3637
+ }
3638
+ return assetData == null ? void 0 : assetData.extraIdName;
3639
+ }
3640
+ return null;
3636
3641
  } catch (e) {
3637
3642
  improveAndRethrow(e, "getExtraIdNameIfPresent");
3638
3643
  }