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

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.js CHANGED
@@ -2610,16 +2610,16 @@ function Success$c(_ref) {
2610
2610
  });
2611
2611
  }
2612
2612
 
2613
- const useDoesChainSupportNotifi = (account, chainId) => {
2613
+ const useDoesChainSupportNotifi = chainId => {
2614
2614
  const [notifiChainSupported, setNotifiChainSupported] = useState(false);
2615
2615
  useEffect(() => {
2616
2616
  const checkNotifiChainSupported = async () => {
2617
- if (account != null && chainId != null) {
2618
- setNotifiChainSupported(doesChainSupportNotifi(chainId, checkIsDev(), account));
2617
+ if (chainId != null) {
2618
+ setNotifiChainSupported(doesChainSupportNotifi(chainId, checkIsDev()));
2619
2619
  }
2620
2620
  };
2621
2621
  checkNotifiChainSupported();
2622
- }, [account, chainId]);
2622
+ }, [chainId]);
2623
2623
  return {
2624
2624
  notifiChainSupported
2625
2625
  };
@@ -2628,7 +2628,7 @@ const useNotifiClient = (account, chainId) => {
2628
2628
  const [notifiClient, setNotifiClient] = useState(null);
2629
2629
  const {
2630
2630
  notifiChainSupported
2631
- } = useDoesChainSupportNotifi(account, chainId);
2631
+ } = useDoesChainSupportNotifi(chainId);
2632
2632
  useEffect(() => {
2633
2633
  const createNotifiClient = async () => {
2634
2634
  if (account != null && chainId != null && notifiChainSupported) {
@@ -2657,7 +2657,7 @@ const useIsFirstTimeNotifiUser = (account, chainId) => {
2657
2657
  } = useNotifiClient(account, chainId);
2658
2658
  const {
2659
2659
  notifiChainSupported
2660
- } = useDoesChainSupportNotifi(account, chainId);
2660
+ } = useDoesChainSupportNotifi(chainId);
2661
2661
  useEffect(() => {
2662
2662
  const checkIsFirstTimeNotifiUser = async () => {
2663
2663
  if (notifiClient != null && notifiChainSupported) {
@@ -2884,7 +2884,7 @@ function CreditLineBorrow(_ref) {
2884
2884
  } = useIsFirstTimeNotifiUser(account, chainId);
2885
2885
  const {
2886
2886
  notifiChainSupported
2887
- } = useDoesChainSupportNotifi(account, chainId);
2887
+ } = useDoesChainSupportNotifi(chainId);
2888
2888
  const {
2889
2889
  creditRecord
2890
2890
  } = accountStats;
@@ -3226,7 +3226,7 @@ function CreditLineBorrowV2(_ref) {
3226
3226
  } = useIsFirstTimeNotifiUser(account, chainId);
3227
3227
  const {
3228
3228
  notifiChainSupported
3229
- } = useDoesChainSupportNotifi(account, chainId);
3229
+ } = useDoesChainSupportNotifi(chainId);
3230
3230
  const {
3231
3231
  creditRecord
3232
3232
  } = accountStats;
@@ -5249,7 +5249,7 @@ function LendSupply(_ref) {
5249
5249
  } = useIsFirstTimeNotifiUser(account, chainId);
5250
5250
  const {
5251
5251
  notifiChainSupported
5252
- } = useDoesChainSupportNotifi(account, chainId);
5252
+ } = useDoesChainSupportNotifi(chainId);
5253
5253
  const [lenderApproved, refreshLenderApproved] = useLenderApproved(poolName, poolType, chainId, account, provider);
5254
5254
  const [, refreshLenderPosition] = useLenderPosition(poolName, poolType, chainId, account, provider);
5255
5255
  const withdrawlLockoutSeconds = useWithdrawlLockoutInSeconds(poolName, poolType, chainId, provider);
@@ -5730,7 +5730,7 @@ function Success$4(_ref) {
5730
5730
  } = useIsFirstTimeNotifiUser(account, chainId);
5731
5731
  const {
5732
5732
  notifiChainSupported
5733
- } = useDoesChainSupportNotifi(account, chainId);
5733
+ } = useDoesChainSupportNotifi(chainId);
5734
5734
  const hasNextStep = isFirstTimeNotifiUser;
5735
5735
  useEffect(() => {
5736
5736
  if (txReceipt) {
@@ -6537,7 +6537,7 @@ function ReceivableBackedCreditLineBorrowV2(_ref) {
6537
6537
  } = useIsFirstTimeNotifiUser(account, chainId);
6538
6538
  const {
6539
6539
  notifiChainSupported
6540
- } = useDoesChainSupportNotifi(account, chainId);
6540
+ } = useDoesChainSupportNotifi(chainId);
6541
6541
  const {
6542
6542
  creditRecord
6543
6543
  } = accountStats;