🎨 Format Utils (#1173)
This commit is contained in:
@@ -29,9 +29,9 @@ export const confirmPasswordRules = (
|
||||
) => {
|
||||
const rules: any = {
|
||||
validate: (value: string) => {
|
||||
const password = getValues().password || getValues().new_password;
|
||||
return value === password ? true : "The passwords do not match";
|
||||
}
|
||||
const password = getValues().password || getValues().new_password
|
||||
return value === password ? true : "The passwords do not match"
|
||||
},
|
||||
}
|
||||
|
||||
if (isRequired) {
|
||||
|
Reference in New Issue
Block a user