@multiversx/sdk-dapp-liquidity 1.0.11 → 1.0.12

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/package.json CHANGED
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/multiversx/mx-sdk-dapp-liquidity#readme",
30
30
  "license": "MIT",
31
- "version": "1.0.11",
31
+ "version": "1.0.12",
32
32
  "main": "index.js",
33
33
  "module": "index.mjs",
34
34
  "types": "index.d.ts",
@@ -297,7 +297,7 @@ const BridgeForm = ({
297
297
  setFirstToken(() => option);
298
298
  updateUrlParams({ firstTokenId: option == null ? void 0 : option.address });
299
299
  const secondOption = toOptions.find(
300
- (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLocaleLowerCase())
300
+ (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLowerCase())
301
301
  ) ?? defaultReceivingToken;
302
302
  if (!secondOption) {
303
303
  return;
@@ -315,7 +315,7 @@ const BridgeForm = ({
315
315
  setSecondToken(() => option);
316
316
  updateUrlParams({ secondTokenId: option == null ? void 0 : option.address });
317
317
  const firstOption = fromOptions.find(
318
- (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLocaleLowerCase())
318
+ (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLowerCase())
319
319
  );
320
320
  if (!firstOption) {
321
321
  return;
@@ -342,7 +342,7 @@ const BridgeForm = ({
342
342
  const secondOption = (toOptions == null ? void 0 : toOptions.find(
343
343
  ({ address }) => address.toLowerCase() === ((firstOption == null ? void 0 : firstOption.symbol) ?? (initialTokens == null ? void 0 : initialTokens.secondTokenId)).toLowerCase()
344
344
  )) ?? toOptions.find(
345
- (x) => x.symbol.toLowerCase() === (firstOption == null ? void 0 : firstOption.symbol.toLocaleLowerCase())
345
+ (x) => x.symbol.toLowerCase() === (firstOption == null ? void 0 : firstOption.symbol.toLowerCase())
346
346
  ) ?? defaultReceivingToken;
347
347
  const hasOptionsSelected = Boolean(firstToken) && Boolean(secondToken) && ((_a2 = firstToken == null ? void 0 : firstToken.address) == null ? void 0 : _a2.toLowerCase()) === ((_b2 = firstOption == null ? void 0 : firstOption.address) == null ? void 0 : _b2.toLowerCase()) && ((_c2 = secondToken == null ? void 0 : secondToken.address) == null ? void 0 : _c2.toLowerCase()) === ((_d2 = secondOption == null ? void 0 : secondOption.address) == null ? void 0 : _d2.toLowerCase());
348
348
  if (hasOptionsSelected) {
@@ -294,7 +294,7 @@ const BridgeForm = ({
294
294
  setFirstToken(() => option);
295
295
  updateUrlParams({ firstTokenId: option == null ? void 0 : option.address });
296
296
  const secondOption = toOptions.find(
297
- (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLocaleLowerCase())
297
+ (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLowerCase())
298
298
  ) ?? defaultReceivingToken;
299
299
  if (!secondOption) {
300
300
  return;
@@ -312,7 +312,7 @@ const BridgeForm = ({
312
312
  setSecondToken(() => option);
313
313
  updateUrlParams({ secondTokenId: option == null ? void 0 : option.address });
314
314
  const firstOption = fromOptions.find(
315
- (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLocaleLowerCase())
315
+ (x) => x.symbol.toLowerCase() === (option == null ? void 0 : option.symbol.toLowerCase())
316
316
  );
317
317
  if (!firstOption) {
318
318
  return;
@@ -339,7 +339,7 @@ const BridgeForm = ({
339
339
  const secondOption = (toOptions == null ? void 0 : toOptions.find(
340
340
  ({ address }) => address.toLowerCase() === ((firstOption == null ? void 0 : firstOption.symbol) ?? (initialTokens == null ? void 0 : initialTokens.secondTokenId)).toLowerCase()
341
341
  )) ?? toOptions.find(
342
- (x) => x.symbol.toLowerCase() === (firstOption == null ? void 0 : firstOption.symbol.toLocaleLowerCase())
342
+ (x) => x.symbol.toLowerCase() === (firstOption == null ? void 0 : firstOption.symbol.toLowerCase())
343
343
  ) ?? defaultReceivingToken;
344
344
  const hasOptionsSelected = Boolean(firstToken) && Boolean(secondToken) && ((_a2 = firstToken == null ? void 0 : firstToken.address) == null ? void 0 : _a2.toLowerCase()) === ((_b2 = firstOption == null ? void 0 : firstOption.address) == null ? void 0 : _b2.toLowerCase()) && ((_c2 = secondToken == null ? void 0 : secondToken.address) == null ? void 0 : _c2.toLowerCase()) === ((_d2 = secondOption == null ? void 0 : secondOption.address) == null ? void 0 : _d2.toLowerCase());
345
345
  if (hasOptionsSelected) {