From 2b6e84d645633ffda191ba4142f01ae1398de18c Mon Sep 17 00:00:00 2001 From: bluecloud <96812901+pitb2022@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:12:32 +0800 Subject: [PATCH] fix(SetUserNameDialog):fix user name input rule --- src/components/Dialogs/SetUserNameDialog/InputStep.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Dialogs/SetUserNameDialog/InputStep.tsx b/src/components/Dialogs/SetUserNameDialog/InputStep.tsx index 143ff2dfdc..5579d14108 100644 --- a/src/components/Dialogs/SetUserNameDialog/InputStep.tsx +++ b/src/components/Dialogs/SetUserNameDialog/InputStep.tsx @@ -128,7 +128,7 @@ const InputStep: React.FC = ({ userName, gotoConfirm }) => { }} onKeyUp={() => { const v = normalizeUserName(values.mattersID) - setFieldValue('userName', v.slice(0, maxUsername)) + setFieldValue('mattersID', v.slice(0, maxUsername)) }} leftButton={@} hasFooter={false}