diff --git a/frontend/src/utils.ts b/frontend/src/utils.ts index 0768f5e..7fb3775 100644 --- a/frontend/src/utils.ts +++ b/frontend/src/utils.ts @@ -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) {