@huma-finance/widgets 0.0.62-beta.705 → 0.0.62-beta.710

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.62-beta.705+709d673",
3
+ "version": "0.0.62-beta.710+3ff25fb",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,9 +29,9 @@
29
29
  "@ethersproject/experimental": "^5.7.0",
30
30
  "@ethersproject/providers": "^5.6.0",
31
31
  "@ethersproject/units": "^5.6.0",
32
- "@huma-finance/sdk": "^0.0.61",
33
- "@huma-finance/shared": "^0.0.61",
34
- "@huma-finance/web-shared": "^0.0.61",
32
+ "@huma-finance/sdk": "^0.0.62-beta.710+3ff25fb",
33
+ "@huma-finance/shared": "^0.0.62-beta.710+3ff25fb",
34
+ "@huma-finance/web-shared": "^0.0.62-beta.710+3ff25fb",
35
35
  "@mui/icons-material": "^5.3.0",
36
36
  "@mui/material": "^5.0.6",
37
37
  "@mui/styles": "^5.0.2",
@@ -203,5 +203,5 @@
203
203
  "optionalDependencies": {
204
204
  "encoding": "^0.1.13"
205
205
  },
206
- "gitHead": "709d673a67009fb991e047b883e3e386b138f267"
206
+ "gitHead": "3ff25fb18ab252d98efdc671c46f2166f10556f6"
207
207
  }
@@ -96,9 +96,9 @@ export function PersonaEvaluation({
96
96
  ])
97
97
 
98
98
  const approveLender = useCallback(async () => {
99
+ isActionOngoingRef.current = true
100
+ setLoadingType('approveLender')
99
101
  try {
100
- isActionOngoingRef.current = true
101
- setLoadingType('approveLender')
102
102
  await IdentityServiceV2.approveLender(
103
103
  account!,
104
104
  chainId!,
@@ -106,7 +106,12 @@ export function PersonaEvaluation({
106
106
  isDev,
107
107
  chainSpecificData,
108
108
  )
109
- if (!isUniTranche) {
109
+ } catch (e: unknown) {
110
+ console.error(e)
111
+ }
112
+
113
+ if (!isUniTranche) {
114
+ try {
110
115
  await IdentityServiceV2.approveLender(
111
116
  account!,
112
117
  chainId!,
@@ -114,17 +119,19 @@ export function PersonaEvaluation({
114
119
  isDev,
115
120
  chainSpecificData,
116
121
  )
122
+ } catch (e: unknown) {
123
+ console.error(e)
117
124
  }
118
- if (isUniTranche) {
119
- changeTranche('junior')
120
- dispatch(setStep(WIDGET_STEP.ChooseAmount))
121
- } else {
122
- dispatch(setStep(WIDGET_STEP.ChooseTranche))
123
- }
124
- } finally {
125
- isActionOngoingRef.current = false
126
- setLoadingType(undefined)
127
125
  }
126
+ if (isUniTranche) {
127
+ changeTranche('junior')
128
+ dispatch(setStep(WIDGET_STEP.ChooseAmount))
129
+ } else {
130
+ dispatch(setStep(WIDGET_STEP.ChooseTranche))
131
+ }
132
+
133
+ isActionOngoingRef.current = false
134
+ setLoadingType(undefined)
128
135
  }, [
129
136
  account,
130
137
  chainId,