@tap-payments/auth-jsconnect 2.5.14-test → 2.5.15-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.
|
@@ -59,7 +59,11 @@ var OTP = function () {
|
|
|
59
59
|
},
|
|
60
60
|
mode: 'onChange'
|
|
61
61
|
});
|
|
62
|
+
console.log('OTP start');
|
|
63
|
+
debugger;
|
|
62
64
|
useSetFromDefaultValues(methods, data.otpData);
|
|
65
|
+
debugger;
|
|
66
|
+
console.log('OTP end');
|
|
63
67
|
var t = useTranslation().t;
|
|
64
68
|
var isAr = useLanguage().isAr;
|
|
65
69
|
var startWithNID = data.otpData.authFor === AuthForType.NATIONAL_ID;
|
|
@@ -9,8 +9,11 @@ var isValidValue = function (value) {
|
|
|
9
9
|
export var useSetFromDefaultValues = function (method, defaultValues, shouldValidate) {
|
|
10
10
|
if (shouldValidate === void 0) { shouldValidate = false; }
|
|
11
11
|
console.log('useSetFromDefaultValues start');
|
|
12
|
+
console.log('defaultValues', defaultValues);
|
|
12
13
|
var setFromDefaultValues = function () {
|
|
13
14
|
for (var key in defaultValues) {
|
|
15
|
+
console.log('key', key);
|
|
16
|
+
console.log('defaultValues[key]', defaultValues[key]);
|
|
14
17
|
if (Object.prototype.hasOwnProperty.call(defaultValues, key)) {
|
|
15
18
|
if (key === 'responseBody')
|
|
16
19
|
continue;
|