@huma-finance/widgets 0.0.59-beta.472 → 0.0.59-beta.479

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.
@@ -2649,16 +2649,16 @@ function Success$c(_ref) {
2649
2649
  });
2650
2650
  }
2651
2651
 
2652
- const useDoesChainSupportNotifi = (account, chainId) => {
2652
+ const useDoesChainSupportNotifi = chainId => {
2653
2653
  const [notifiChainSupported, setNotifiChainSupported] = React.useState(false);
2654
2654
  React.useEffect(() => {
2655
2655
  const checkNotifiChainSupported = async () => {
2656
- if (account != null && chainId != null) {
2657
- setNotifiChainSupported(shared.doesChainSupportNotifi(chainId, shared.checkIsDev(), account));
2656
+ if (chainId != null) {
2657
+ setNotifiChainSupported(shared.doesChainSupportNotifi(chainId, shared.checkIsDev()));
2658
2658
  }
2659
2659
  };
2660
2660
  checkNotifiChainSupported();
2661
- }, [account, chainId]);
2661
+ }, [chainId]);
2662
2662
  return {
2663
2663
  notifiChainSupported
2664
2664
  };
@@ -2667,7 +2667,7 @@ const useNotifiClient = (account, chainId) => {
2667
2667
  const [notifiClient, setNotifiClient] = React.useState(null);
2668
2668
  const {
2669
2669
  notifiChainSupported
2670
- } = useDoesChainSupportNotifi(account, chainId);
2670
+ } = useDoesChainSupportNotifi(chainId);
2671
2671
  React.useEffect(() => {
2672
2672
  const createNotifiClient = async () => {
2673
2673
  if (account != null && chainId != null && notifiChainSupported) {
@@ -2696,7 +2696,7 @@ const useIsFirstTimeNotifiUser = (account, chainId) => {
2696
2696
  } = useNotifiClient(account, chainId);
2697
2697
  const {
2698
2698
  notifiChainSupported
2699
- } = useDoesChainSupportNotifi(account, chainId);
2699
+ } = useDoesChainSupportNotifi(chainId);
2700
2700
  React.useEffect(() => {
2701
2701
  const checkIsFirstTimeNotifiUser = async () => {
2702
2702
  if (notifiClient != null && notifiChainSupported) {
@@ -2923,7 +2923,7 @@ function CreditLineBorrow(_ref) {
2923
2923
  } = useIsFirstTimeNotifiUser(account, chainId);
2924
2924
  const {
2925
2925
  notifiChainSupported
2926
- } = useDoesChainSupportNotifi(account, chainId);
2926
+ } = useDoesChainSupportNotifi(chainId);
2927
2927
  const {
2928
2928
  creditRecord
2929
2929
  } = accountStats;
@@ -3265,7 +3265,7 @@ function CreditLineBorrowV2(_ref) {
3265
3265
  } = useIsFirstTimeNotifiUser(account, chainId);
3266
3266
  const {
3267
3267
  notifiChainSupported
3268
- } = useDoesChainSupportNotifi(account, chainId);
3268
+ } = useDoesChainSupportNotifi(chainId);
3269
3269
  const {
3270
3270
  creditRecord
3271
3271
  } = accountStats;
@@ -5288,7 +5288,7 @@ function LendSupply(_ref) {
5288
5288
  } = useIsFirstTimeNotifiUser(account, chainId);
5289
5289
  const {
5290
5290
  notifiChainSupported
5291
- } = useDoesChainSupportNotifi(account, chainId);
5291
+ } = useDoesChainSupportNotifi(chainId);
5292
5292
  const [lenderApproved, refreshLenderApproved] = shared.useLenderApproved(poolName, poolType, chainId, account, provider);
5293
5293
  const [, refreshLenderPosition] = shared.useLenderPosition(poolName, poolType, chainId, account, provider);
5294
5294
  const withdrawlLockoutSeconds = shared.useWithdrawlLockoutInSeconds(poolName, poolType, chainId, provider);
@@ -5769,7 +5769,7 @@ function Success$4(_ref) {
5769
5769
  } = useIsFirstTimeNotifiUser(account, chainId);
5770
5770
  const {
5771
5771
  notifiChainSupported
5772
- } = useDoesChainSupportNotifi(account, chainId);
5772
+ } = useDoesChainSupportNotifi(chainId);
5773
5773
  const hasNextStep = isFirstTimeNotifiUser;
5774
5774
  React.useEffect(() => {
5775
5775
  if (txReceipt) {
@@ -6576,7 +6576,7 @@ function ReceivableBackedCreditLineBorrowV2(_ref) {
6576
6576
  } = useIsFirstTimeNotifiUser(account, chainId);
6577
6577
  const {
6578
6578
  notifiChainSupported
6579
- } = useDoesChainSupportNotifi(account, chainId);
6579
+ } = useDoesChainSupportNotifi(chainId);
6580
6580
  const {
6581
6581
  creditRecord
6582
6582
  } = accountStats;