@tap-payments/auth-jsconnect 2.3.17-test → 2.3.18-test
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.
|
@@ -71,7 +71,7 @@ import API from '../../../api';
|
|
|
71
71
|
import { FlowsTypes, IndividualGender, IndividualType, DocumentPurpose } from '../../../@types';
|
|
72
72
|
import { handleNextScreenStep, handleSetCountryByIso2 } from '../../../app/settings';
|
|
73
73
|
import { defaultCountry, IDENTIFICATION_TYPE, INDIVIDUAl_STEP_NAMES } from '../../../constants';
|
|
74
|
-
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2,
|
|
74
|
+
import { convertNumbers2English, dateFormat, findCountryByIddPrefix, findCountryByIso2, getUserNameObject, getUserName, sleep, isValidEmail, getRecentDocumentBasedOnPurpose } from '../../../utils';
|
|
75
75
|
export var verifyToken = createAsyncThunk('individual/verifyToken', function (_a, thunkApi) {
|
|
76
76
|
var token = _a.token, isInternally = _a.isInternally, isUpdatePhoneInfo = _a.isUpdatePhoneInfo;
|
|
77
77
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -191,7 +191,12 @@ export var verifyLeadToken = createAsyncThunk('individualVerifyLeadToken', funct
|
|
|
191
191
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
192
192
|
return __generator(this, function (_b) {
|
|
193
193
|
switch (_b.label) {
|
|
194
|
-
case 0: return [4, thunkApi
|
|
194
|
+
case 0: return [4, thunkApi
|
|
195
|
+
.dispatch(verifyToken({ token: token, isInternally: isInternally }))
|
|
196
|
+
.unwrap()
|
|
197
|
+
.catch(function (err) {
|
|
198
|
+
throw new Error(err.message);
|
|
199
|
+
})];
|
|
195
200
|
case 1:
|
|
196
201
|
_b.sent();
|
|
197
202
|
return [2];
|
|
@@ -816,7 +821,7 @@ var initialState = {
|
|
|
816
821
|
nid: '',
|
|
817
822
|
issuedCountry: undefined,
|
|
818
823
|
expiryDate: '',
|
|
819
|
-
dob:
|
|
824
|
+
dob: '',
|
|
820
825
|
placeOfBirthCountry: undefined,
|
|
821
826
|
placeOfBirthCity: undefined,
|
|
822
827
|
nationality: undefined
|
|
@@ -41,6 +41,6 @@ var BOD = function (_a) {
|
|
|
41
41
|
return (_jsx(Collapse, __assign({ in: show }, { children: _jsxs(ScreenContainer, { children: [_jsx(InputLabelStyled, __assign({ sx: { p: function (_a) {
|
|
42
42
|
var spacing = _a.spacing;
|
|
43
43
|
return spacing(2.5, 2.5, 2.5, 2.5);
|
|
44
|
-
} } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { readOnly: true, defaultValue: dateValue ? new Date(dateValue) :
|
|
44
|
+
} } }, { children: t('enter_birth_date') })), _jsx(DatePicker, { readOnly: true, defaultValue: dateValue ? new Date(dateValue) : undefined, dir: 'ltr', locale: 'en', onClick: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(true); }, onDatePicked: function () { return onDateClicked === null || onDateClicked === void 0 ? void 0 : onDateClicked(false); }, onDateChange: handleBirthDateChange })] }) })));
|
|
45
45
|
};
|
|
46
46
|
export default React.memo(BOD);
|