@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.
package/dist/index.cjs CHANGED
@@ -3636,7 +3636,14 @@ var SwapspaceSwapProvider = /*#__PURE__*/function (_SwapProvider) {
3636
3636
  var _i$coin4;
3637
3637
  return ((_i$coin4 = i.coin) == null ? void 0 : _i$coin4.ticker) === (asset == null ? void 0 : asset.ticker);
3638
3638
  });
3639
- return assetData != null && assetData.hasExtraId ? assetData == null ? void 0 : assetData.extraIdName : 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;
3640
3647
  } catch (e) {
3641
3648
  improveAndRethrow(e, "getExtraIdNameIfPresent");
3642
3649
  }