From 34b4ac56b71e704bc06b61beda1ddaf5c4c951e9 Mon Sep 17 00:00:00 2001 From: Josh Adam Date: Fri, 17 Jun 2022 10:38:47 -0500 Subject: [PATCH] Fixed eslint rule: - Unexpected empty object pattern no-empty-pattern --- .../js/pages/user/components/UserChangePasswordForm.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/resources/js/pages/user/components/UserChangePasswordForm.jsx b/src/main/webapp/resources/js/pages/user/components/UserChangePasswordForm.jsx index 95caacab65e..25220a21112 100644 --- a/src/main/webapp/resources/js/pages/user/components/UserChangePasswordForm.jsx +++ b/src/main/webapp/resources/js/pages/user/components/UserChangePasswordForm.jsx @@ -68,7 +68,7 @@ export function UserChangePasswordForm({ userId }) { label={i18n("UserChangePasswordForm.form.label.newPassword")} name="newPassword" rules={[ - ({}) => ({ + () => ({ validator(_, value) { return validatePassword(value); },