@rabbitio/ui-kit 1.0.0-beta.34 → 1.0.0-beta.36

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.
@@ -3233,7 +3233,14 @@ class SwapspaceSwapProvider extends SwapProvider {
3233
3233
  var _i$coin4;
3234
3234
  return ((_i$coin4 = i.coin) == null ? void 0 : _i$coin4.ticker) === (asset == null ? void 0 : asset.ticker);
3235
3235
  });
3236
- return assetData != null && assetData.hasExtraId ? assetData == null ? void 0 : assetData.extraIdName : 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;
3237
3244
  } catch (e) {
3238
3245
  improveAndRethrow(e, "getExtraIdNameIfPresent");
3239
3246
  }