@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.modern.js
CHANGED
|
@@ -3229,11 +3229,13 @@ class SwapspaceSwapProvider extends SwapProvider {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
getExtraIdNameIfPresent(asset) {
|
|
3231
3231
|
try {
|
|
3232
|
+
var _assetData$extraIdNam;
|
|
3232
3233
|
const assetData = this._supportedCoins.find(i => {
|
|
3233
3234
|
var _i$coin4;
|
|
3234
3235
|
return ((_i$coin4 = i.coin) == null ? void 0 : _i$coin4.ticker) === (asset == null ? void 0 : asset.ticker);
|
|
3235
3236
|
});
|
|
3236
|
-
|
|
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;
|
|
3237
3239
|
} catch (e) {
|
|
3238
3240
|
improveAndRethrow(e, "getExtraIdNameIfPresent");
|
|
3239
3241
|
}
|