herald-exchange-offramp-widget 1.0.2 → 1.0.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herald-exchange-offramp-widget",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -200,7 +200,7 @@ const SellAdminCryptoAccount = ({
200
200
  const currency = tokenSellData.selectedCrypto;
201
201
  const expected_amount = tokenSellData.from_amount;
202
202
 
203
- if (walletAddress) {
203
+ if (walletAddress && mode === "production") {
204
204
  const startTimestamp = Date.now();
205
205
  // let rpcUrl = SUPPORTED_RPC_NODES[SupportedTokens[token]];
206
206
 
@@ -218,6 +218,8 @@ const SellAdminCryptoAccount = ({
218
218
  fetchTransactions(token, walletAddress, startTimestamp, expected_amount);
219
219
  }
220
220
  }, 10000);
221
+ } else {
222
+ handleManualHash();
221
223
  }
222
224
  // generateQRDetails(walletAddress, token, tokenSellData.from_currency);
223
225
  }
@@ -422,10 +424,10 @@ const SellAdminCryptoAccount = ({
422
424
  setMonitoring(false);
423
425
  };
424
426
 
425
- // const handleManualHash = () => {
426
- // setMonitoring(false);
427
- // setAutomaticHash(false);
428
- // };
427
+ const handleManualHash = () => {
428
+ setMonitoring(false);
429
+ setAutomaticHash(false);
430
+ };
429
431
 
430
432
  return (
431
433
  <>