mirror of
https://github.com/RYDE-WORK/full-stack-fastapi-template.git
synced 2026-01-19 21:23:36 +08:00
🎨 Format Utils (#1173)
This commit is contained in:
parent
6e0674236b
commit
314da98a45
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user