@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.
package/dist/index.cjs CHANGED
@@ -3001,7 +3001,7 @@ var SwapspaceSwapProvider = /*#__PURE__*/function (_SwapProvider) {
3001
3001
  }
3002
3002
  _this = _SwapProvider.call(this) || this;
3003
3003
  _this._supportedCoins = [];
3004
- _this._URL = apiKeysProxyUrl + "/swapspace";
3004
+ _this._URL = "" + apiKeysProxyUrl;
3005
3005
  _this._maxRateDigits = 20;
3006
3006
  _this.useRestrictedCoinsSet = useRestrictedCoinsSet;
3007
3007
  _this._customCoinBuilder = customCoinBuilder;
@@ -3632,13 +3632,18 @@ var SwapspaceSwapProvider = /*#__PURE__*/function (_SwapProvider) {
3632
3632
  };
3633
3633
  _proto.getExtraIdNameIfPresent = function getExtraIdNameIfPresent(asset) {
3634
3634
  try {
3635
- var _assetData$extraIdNam;
3636
3635
  var assetData = this._supportedCoins.find(function (i) {
3637
3636
  var _i$coin4;
3638
3637
  return ((_i$coin4 = i.coin) == null ? void 0 : _i$coin4.ticker) === (asset == null ? void 0 : asset.ticker);
3639
3638
  });
3640
- // We return "ID" if the extraIdName is empty
3641
- return assetData != null && assetData.hasExtraId ? (_assetData$extraIdNam = assetData == null ? void 0 : assetData.extraIdName) != null ? _assetData$extraIdNam : "ID" : null;
3639
+ if (assetData != null && assetData.hasExtraId) {
3640
+ if ((assetData == null ? void 0 : assetData.extraIdName) == null || (assetData == null ? void 0 : assetData.extraIdName) === "") {
3641
+ // We return some default name if the extraIdName is empty
3642
+ return "ID";
3643
+ }
3644
+ return assetData == null ? void 0 : assetData.extraIdName;
3645
+ }
3646
+ return null;
3642
3647
  } catch (e) {
3643
3648
  improveAndRethrow(e, "getExtraIdNameIfPresent");
3644
3649
  }