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