@rabbitio/ui-kit 1.0.0-beta.34 → 1.0.0-beta.35
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +3 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +3 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +4 -1
package/dist/index.cjs
CHANGED
|
@@ -3632,11 +3632,13 @@ var SwapspaceSwapProvider = /*#__PURE__*/function (_SwapProvider) {
|
|
|
3632
3632
|
};
|
|
3633
3633
|
_proto.getExtraIdNameIfPresent = function getExtraIdNameIfPresent(asset) {
|
|
3634
3634
|
try {
|
|
3635
|
+
var _assetData$extraIdNam;
|
|
3635
3636
|
var assetData = this._supportedCoins.find(function (i) {
|
|
3636
3637
|
var _i$coin4;
|
|
3637
3638
|
return ((_i$coin4 = i.coin) == null ? void 0 : _i$coin4.ticker) === (asset == null ? void 0 : asset.ticker);
|
|
3638
3639
|
});
|
|
3639
|
-
|
|
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;
|
|
3640
3642
|
} catch (e) {
|
|
3641
3643
|
improveAndRethrow(e, "getExtraIdNameIfPresent");
|
|
3642
3644
|
}
|