@huma-finance/widgets 0.0.48-beta.303 → 0.0.48-beta.305

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.
@@ -2658,7 +2658,7 @@ const useDoesChainSupportNotifi = (account, chainId) => {
2658
2658
  notifiChainSupported
2659
2659
  };
2660
2660
  };
2661
- const useNotifiClient = (account, chainId, isDev) => {
2661
+ const useNotifiClient = (account, chainId) => {
2662
2662
  const [notifiClient, setNotifiClient] = React.useState(null);
2663
2663
  const {
2664
2664
  notifiChainSupported
@@ -2670,8 +2670,8 @@ const useNotifiClient = (account, chainId, isDev) => {
2670
2670
  account: {
2671
2671
  publicKey: account
2672
2672
  },
2673
- tenantId: shared.getNotifiDappId(isDev),
2674
- env: isDev ? 'Development' : 'Production',
2673
+ tenantId: 'humafinanceprod',
2674
+ env: 'Production',
2675
2675
  walletBlockchain: shared.getBlockchainConfigFromChain(chainId)
2676
2676
  });
2677
2677
  await client.initialize();
@@ -2679,7 +2679,7 @@ const useNotifiClient = (account, chainId, isDev) => {
2679
2679
  }
2680
2680
  };
2681
2681
  createNotifiClient();
2682
- }, [account, chainId, isDev, notifiChainSupported]);
2682
+ }, [account, chainId, notifiChainSupported]);
2683
2683
  return {
2684
2684
  notifiClient
2685
2685
  };
@@ -2688,7 +2688,7 @@ const useIsFirstTimeNotifiUser = (account, chainId) => {
2688
2688
  const [isFirstTimeNotifiUser, setIsFirstTimeNotifiUser] = React.useState(false);
2689
2689
  const {
2690
2690
  notifiClient
2691
- } = useNotifiClient(account, chainId, shared.checkIsDev());
2691
+ } = useNotifiClient(account, chainId);
2692
2692
  const {
2693
2693
  notifiChainSupported
2694
2694
  } = useDoesChainSupportNotifi(account, chainId);
@@ -2772,7 +2772,7 @@ function NotifiSubscriptionModal(_ref) {
2772
2772
  const [emailValid, setEmailValid] = React.useState();
2773
2773
  const {
2774
2774
  notifiClient
2775
- } = useNotifiClient(account, chainId, shared.checkIsDev());
2775
+ } = useNotifiClient(account, chainId);
2776
2776
  const signMessage = async message => {
2777
2777
  const signer = provider.getSigner();
2778
2778
  const signature = await signer.signMessage(Buffer.from(message));