@zeniai/client-epic-state 4.15.10 → 4.15.12
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.
|
@@ -178,7 +178,7 @@ function isOfficerDetailsCompleted(companyOfficers, companyOfficerRoles, officer
|
|
|
178
178
|
if (selectedOfficerIndex < 0) {
|
|
179
179
|
selectedOfficerIndex = 0;
|
|
180
180
|
}
|
|
181
|
-
const { userId, firstName, lastName, birthday, email, phone: userPhone, ssn, } = companyOfficers[selectedOfficerIndex];
|
|
181
|
+
const { userId, firstName, lastName, birthday, email, phone: userPhone, ssn, isPhoneVerified, } = companyOfficers[selectedOfficerIndex];
|
|
182
182
|
const userRole = companyOfficerRoles.find((userRole) => userRole.userId === userId);
|
|
183
183
|
const files = (0, fileSelector_1.getFilesByFileIds)(fileState, (_a = userRole === null || userRole === void 0 ? void 0 : userRole.fileIds) !== null && _a !== void 0 ? _a : []).filter((file) => file.documentType === (userRole === null || userRole === void 0 ? void 0 : userRole.documentTypeSelectedForVerification));
|
|
184
184
|
return (Boolean(firstName) &&
|
|
@@ -191,7 +191,8 @@ function isOfficerDetailsCompleted(companyOfficers, companyOfficerRoles, officer
|
|
|
191
191
|
Boolean(userRole === null || userRole === void 0 ? void 0 : userRole.ownershipInCompany) &&
|
|
192
192
|
Boolean(userRole === null || userRole === void 0 ? void 0 : userRole.documentTypeSelectedForVerification) &&
|
|
193
193
|
Boolean(userRole === null || userRole === void 0 ? void 0 : userRole.addressId) &&
|
|
194
|
-
files.length >=
|
|
194
|
+
files.length >= 1 &&
|
|
195
|
+
isPhoneVerified === true);
|
|
195
196
|
}
|
|
196
197
|
const onboardingStepsData = (isValidConnection, productSettings, accountingConnectionCreationMode) => {
|
|
197
198
|
const allStepsData = accountingConnectionCreationMode === 'zeni_user' ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.12",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|