@huma-finance/widgets 0.0.72-beta.895 → 0.0.72-beta.901
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/cjs/index.cjs +11 -11
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/components/Lend/components/PersonaEvaluation.tsx +7 -7
- package/src/components/Lend/components/SecuritizeEvaluation.tsx +4 -7
- package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +2 -5
- package/src/hooks/useEA.ts +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -2241,7 +2241,7 @@ const useEA = () => {
|
|
|
2241
2241
|
const {
|
|
2242
2242
|
isWalletOwnershipVerificationRequired,
|
|
2243
2243
|
isWalletOwnershipVerified,
|
|
2244
|
-
|
|
2244
|
+
setAuthError
|
|
2245
2245
|
} = webShared.useAuthErrorHandling(shared.checkIsDev());
|
|
2246
2246
|
const checkingEA = React.useCallback(async (payload, nextStep) => {
|
|
2247
2247
|
try {
|
|
@@ -6337,8 +6337,8 @@ function PersonaEvaluation(_ref) {
|
|
|
6337
6337
|
const isDev = shared.checkIsDev();
|
|
6338
6338
|
const dispatch = useAppDispatch();
|
|
6339
6339
|
const {
|
|
6340
|
-
|
|
6341
|
-
|
|
6340
|
+
authErrorType,
|
|
6341
|
+
setAuthError,
|
|
6342
6342
|
isWalletOwnershipVerified,
|
|
6343
6343
|
isWalletOwnershipVerificationRequired
|
|
6344
6344
|
} = webShared.useAuthErrorHandling(isDev, chainType);
|
|
@@ -6464,19 +6464,19 @@ function PersonaEvaluation(_ref) {
|
|
|
6464
6464
|
return () => clearInterval(interval);
|
|
6465
6465
|
}, [checkVerificationStatus, verificationStatus === null || verificationStatus === void 0 ? void 0 : verificationStatus.status]);
|
|
6466
6466
|
React.useEffect(() => {
|
|
6467
|
-
if (
|
|
6467
|
+
if (authErrorType === webShared.AUTH_ERROR_TYPE.NotSignedIn) {
|
|
6468
6468
|
setLoadingType(undefined);
|
|
6469
6469
|
setKYCCopy(KYCCopies.signInRequired);
|
|
6470
|
-
} else if (
|
|
6470
|
+
} else if (authErrorType === webShared.AUTH_ERROR_TYPE.UserRejected) {
|
|
6471
6471
|
dispatch(setError({
|
|
6472
6472
|
errorMessage: 'User has rejected the transaction.'
|
|
6473
6473
|
}));
|
|
6474
|
-
} else if (
|
|
6474
|
+
} else if (authErrorType === webShared.AUTH_ERROR_TYPE.Other) {
|
|
6475
6475
|
dispatch(setError({
|
|
6476
6476
|
errorMessage: 'Something went wrong. Please try again later.'
|
|
6477
6477
|
}));
|
|
6478
6478
|
}
|
|
6479
|
-
}, [KYCCopies.signInRequired, dispatch,
|
|
6479
|
+
}, [KYCCopies.signInRequired, dispatch, authErrorType]);
|
|
6480
6480
|
React.useEffect(() => {
|
|
6481
6481
|
const modalElement = document.getElementById('huma-modal');
|
|
6482
6482
|
if (modalElement) {
|
|
@@ -7959,8 +7959,8 @@ function EvaluationKYC(_ref) {
|
|
|
7959
7959
|
} = webShared.useParamsSearch();
|
|
7960
7960
|
const {
|
|
7961
7961
|
isWalletOwnershipVerified,
|
|
7962
|
-
|
|
7963
|
-
|
|
7962
|
+
setAuthError,
|
|
7963
|
+
authError
|
|
7964
7964
|
} = webShared.useAuthErrorHandling(isDev);
|
|
7965
7965
|
const [loadingType, setLoadingType] = React.useState();
|
|
7966
7966
|
const [kycCopy, setKYCCopy] = React.useState(JiaPoolCopies.verifyIdentity);
|
|
@@ -8503,8 +8503,8 @@ function SecuritizeEvaluation(_ref) {
|
|
|
8503
8503
|
} = webShared.useParamsSearch();
|
|
8504
8504
|
const {
|
|
8505
8505
|
isWalletOwnershipVerified,
|
|
8506
|
-
|
|
8507
|
-
|
|
8506
|
+
setAuthError,
|
|
8507
|
+
authError
|
|
8508
8508
|
} = webShared.useAuthErrorHandling(isDev);
|
|
8509
8509
|
const [loadingType, setLoadingType] = React.useState();
|
|
8510
8510
|
const KYCCopies = poolInfo.KYC.Securitize;
|