@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @akinon/pz-masterpass
2
2
 
3
- ## 2.0.35-beta.0
3
+ ## 2.0.35
4
4
 
5
5
  ## 2.0.34
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-masterpass",
3
- "version": "2.0.35-beta.0",
3
+ "version": "2.0.35",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.d.ts",
@@ -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)}