From 3711588909a915fea7ca11ccb88f97ac795d303f Mon Sep 17 00:00:00 2001 From: dorj222 Date: Tue, 7 Feb 2023 11:53:23 +0100 Subject: [PATCH] refactor the Form Input field name from adminPassword to InputFieldPassword --- web/components/admin/TextField.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/admin/TextField.tsx b/web/components/admin/TextField.tsx index 6e2bd5e74..a8ae88ef3 100644 --- a/web/components/admin/TextField.tsx +++ b/web/components/admin/TextField.tsx @@ -76,7 +76,7 @@ export const TextField: FC = ({ }; useEffect(() => { - form.setFieldsValue({ adminPassword: value }); + form.setFieldsValue({ inputFieldPassword: value }); }, [value]); // if you blur a required field with an empty value, restore its original value in state (parent's state), if an onChange from parent is available. @@ -172,11 +172,11 @@ export const TextField: FC = ({