@ethereansos/interfaces-core 0.4.114 → 0.4.115

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.js CHANGED
@@ -48922,10 +48922,14 @@ var Web3ContextInitializer = function Web3ContextInitializer(_ref) {
48922
48922
  var resetBlockInterval = React.useCallback(function () {
48923
48923
  intervalId && clearInterval(intervalId);
48924
48924
  tryUpdateBlock(wallet === null || wallet === void 0 ? void 0 : wallet.ethereum, block, setBlock, true);
48925
- tryUpdateBlock(dualProvider, dualBlock, setDualBlock, true)(wallet && wallet.ethereum || dualProvider) && setIntervalId(setInterval(function () {
48926
- tryUpdateBlock(wallet.ethereum, block, setBlock);
48927
- tryUpdateBlock(dualProvider, dualBlock, setDualBlock);
48928
- }, realBlockIntervalTimeout));
48925
+ tryUpdateBlock(dualProvider, dualBlock, setDualBlock, true);
48926
+
48927
+ if (wallet && wallet.ethereum || dualProvider) {
48928
+ setIntervalId(setInterval(function () {
48929
+ tryUpdateBlock(wallet.ethereum, block, setBlock);
48930
+ tryUpdateBlock(dualProvider, dualBlock, setDualBlock);
48931
+ }, realBlockIntervalTimeout));
48932
+ }
48929
48933
  }, [wallet, dualProvider, realBlockIntervalTimeout, intervalId]);
48930
48934
  React.useEffect(resetBlockInterval, [realBlockInterval, realBlockIntervalTimeout, wallet && wallet.ethereum, dualProvider]);
48931
48935
  React.useEffect(function () {