@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.
@@ -2710,7 +2710,7 @@ class SwapspaceSwapProvider extends SwapProvider {
2710
2710
  constructor(apiKeysProxyUrl, cache, customCoinBuilder = (coin, network) => null, useRestrictedCoinsSet = true) {
2711
2711
  super();
2712
2712
  this._supportedCoins = [];
2713
- this._URL = `${apiKeysProxyUrl}/swapspace`;
2713
+ this._URL = `${apiKeysProxyUrl}`;
2714
2714
  this._maxRateDigits = 20;
2715
2715
  this.useRestrictedCoinsSet = useRestrictedCoinsSet;
2716
2716
  this._customCoinBuilder = customCoinBuilder;
@@ -3229,13 +3229,18 @@ class SwapspaceSwapProvider extends SwapProvider {
3229
3229
  }
3230
3230
  getExtraIdNameIfPresent(asset) {
3231
3231
  try {
3232
- var _assetData$extraIdNam;
3233
3232
  const assetData = this._supportedCoins.find(i => {
3234
3233
  var _i$coin4;
3235
3234
  return ((_i$coin4 = i.coin) == null ? void 0 : _i$coin4.ticker) === (asset == null ? void 0 : asset.ticker);
3236
3235
  });
3237
- // We return "ID" if the extraIdName is empty
3238
- return assetData != null && assetData.hasExtraId ? (_assetData$extraIdNam = assetData == null ? void 0 : assetData.extraIdName) != null ? _assetData$extraIdNam : "ID" : null;
3236
+ if (assetData != null && assetData.hasExtraId) {
3237
+ if ((assetData == null ? void 0 : assetData.extraIdName) == null || (assetData == null ? void 0 : assetData.extraIdName) === "") {
3238
+ // We return some default name if the extraIdName is empty
3239
+ return "ID";
3240
+ }
3241
+ return assetData == null ? void 0 : assetData.extraIdName;
3242
+ }
3243
+ return null;
3239
3244
  } catch (e) {
3240
3245
  improveAndRethrow(e, "getExtraIdNameIfPresent");
3241
3246
  }