@rango-dev/queue-manager-rango-preset 0.1.12-next.2 → 0.1.12-next.4

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": "@rango-dev/queue-manager-rango-preset",
3
- "version": "0.1.12-next.2",
3
+ "version": "0.1.12-next.4",
4
4
  "license": "MIT",
5
5
  "module": "dist/queue-manager-rango-preset.esm.js",
6
6
  "main": "dist/index.js",
package/readme.md CHANGED
@@ -1 +1,3 @@
1
1
  # @rango-dev/queue-manager-rango-preset
2
+
3
+ // TODO
package/src/helpers.ts CHANGED
@@ -713,9 +713,14 @@ export function onBlockForChangeNetwork(
713
713
  if (!!type && !!network) {
714
714
  const result = context.switchNetwork(type, network);
715
715
  if (result) {
716
- result.then(() => {
717
- queue.unblock();
718
- });
716
+ result
717
+ .then(() => {
718
+ queue.unblock();
719
+ })
720
+ .catch((error) => {
721
+ // ignore switch network errors
722
+ console.log({ error });
723
+ });
719
724
  }
720
725
  }
721
726
  }