@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.
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +9 -4
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +9 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/swaps-lib/external-apis/swapspaceSwapProvider.js +12 -5
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ export class SwapspaceSwapProvider extends SwapProvider {
|
|
|
22
22
|
) {
|
|
23
23
|
super();
|
|
24
24
|
this._supportedCoins = [];
|
|
25
|
-
this._URL = `${apiKeysProxyUrl}
|
|
25
|
+
this._URL = `${apiKeysProxyUrl}`;
|
|
26
26
|
this._maxRateDigits = 20;
|
|
27
27
|
this.useRestrictedCoinsSet = useRestrictedCoinsSet;
|
|
28
28
|
this._customCoinBuilder = customCoinBuilder;
|
|
@@ -859,10 +859,17 @@ export class SwapspaceSwapProvider extends SwapProvider {
|
|
|
859
859
|
const assetData = this._supportedCoins.find(
|
|
860
860
|
(i) => i.coin?.ticker === asset?.ticker
|
|
861
861
|
);
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
862
|
+
if (assetData?.hasExtraId) {
|
|
863
|
+
if (
|
|
864
|
+
assetData?.extraIdName == null ||
|
|
865
|
+
assetData?.extraIdName === ""
|
|
866
|
+
) {
|
|
867
|
+
// We return some default name if the extraIdName is empty
|
|
868
|
+
return "ID";
|
|
869
|
+
}
|
|
870
|
+
return assetData?.extraIdName;
|
|
871
|
+
}
|
|
872
|
+
return null;
|
|
866
873
|
} catch (e) {
|
|
867
874
|
improveAndRethrow(e, "getExtraIdNameIfPresent");
|
|
868
875
|
}
|