@tap-payments/auth-jsconnect 2.6.24-test → 2.6.25-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.
|
@@ -46,9 +46,9 @@ var FormStyled = styled(Form)(function () { return ({
|
|
|
46
46
|
flexDirection: 'column'
|
|
47
47
|
}); });
|
|
48
48
|
var VerifyNumber = function (_a) {
|
|
49
|
-
var _b;
|
|
49
|
+
var _b, _c;
|
|
50
50
|
var dispatch = useAppDispatch();
|
|
51
|
-
var
|
|
51
|
+
var _d = useAppSelector(boardSelector), data = _d.data, loading = _d.loading, error = _d.error;
|
|
52
52
|
var methods = useForm({
|
|
53
53
|
resolver: yupResolver(OTPValidation),
|
|
54
54
|
defaultValues: data.otpData,
|
|
@@ -56,8 +56,8 @@ var VerifyNumber = function (_a) {
|
|
|
56
56
|
});
|
|
57
57
|
var t = useTranslation().t;
|
|
58
58
|
var isAr = useLanguage().isAr;
|
|
59
|
-
var
|
|
60
|
-
var phone = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.verification_by.sent_to;
|
|
59
|
+
var _e = React.useState(false), resendLoading = _e[0], setResendLoading = _e[1];
|
|
60
|
+
var phone = (_c = (_b = data.verify.responseBody) === null || _b === void 0 ? void 0 : _b.verification_by) === null || _c === void 0 ? void 0 : _c.sent_to;
|
|
61
61
|
React.useEffect(function () {
|
|
62
62
|
if (error && methods.formState.isValid && phone)
|
|
63
63
|
dispatch(clearError());
|