@akinon/pz-masterpass 2.0.35-beta.0 → 2.0.35
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/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/views/otp-modal/otp-form.tsx +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
2
2
|
import { Button, Input } from 'components';
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
|
-
import { useForm } from 'react-hook-form';
|
|
4
|
+
import { FieldError, useForm } from 'react-hook-form';
|
|
5
5
|
import * as yup from 'yup';
|
|
6
6
|
|
|
7
7
|
export const defaultTranslations = {
|
|
@@ -70,7 +70,7 @@ export const OtpForm = ({
|
|
|
70
70
|
label={translations?.sms_code ?? defaultTranslations.sms_code}
|
|
71
71
|
control={control as any}
|
|
72
72
|
{...register('otp_code')}
|
|
73
|
-
error={errors.otp_code}
|
|
73
|
+
error={errors.otp_code as FieldError}
|
|
74
74
|
/>
|
|
75
75
|
<Button
|
|
76
76
|
onClick={handleSubmit(onSubmit)}
|