File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ import {
22
22
} from "utils/formUtils" ;
23
23
import * as Yup from "yup" ;
24
24
import { countries } from "./countries" ;
25
- import { useEffect , useState } from "react" ;
26
- import { debounce } from "lodash" ;
25
+ import { useEffect } from "react" ;
27
26
28
27
export const Language = {
29
28
emailLabel : "Email" ,
@@ -56,8 +55,7 @@ const validationSchema = Yup.object({
56
55
. trim ( )
57
56
. email ( Language . emailInvalid )
58
57
. required ( Language . emailRequired ) ,
59
- password : Yup . string ( )
60
- . required ( Language . passwordRequired ) ,
58
+ password : Yup . string ( ) . required ( Language . passwordRequired ) ,
61
59
username : nameValidator ( Language . usernameLabel ) ,
62
60
trial : Yup . bool ( ) ,
63
61
trial_info : Yup . object ( ) . when ( "trial" , {
@@ -185,7 +183,6 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
185
183
id = "password"
186
184
label = { Language . passwordLabel }
187
185
type = "password"
188
- error = { ! passwordIsValid } // Show error if password is invalid
189
186
helperText = { ! passwordIsValid ? "Password is not strong enough." : "" } // Provide feedback
190
187
/>
191
188
< label
You can’t perform that action at this time.
0 commit comments