From b082a3ba08c9782c0834af77e6c3f0438534ad72 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 4 Nov 2020 10:31:34 +0800
Subject: refactor: Refactor operation dialog.

---
 FrontEnd/src/app/views/user/ChangeNicknameDialog.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'FrontEnd/src/app/views/user/ChangeNicknameDialog.tsx')

diff --git a/FrontEnd/src/app/views/user/ChangeNicknameDialog.tsx b/FrontEnd/src/app/views/user/ChangeNicknameDialog.tsx
index 251b18c5..0e95b05b 100644
--- a/FrontEnd/src/app/views/user/ChangeNicknameDialog.tsx
+++ b/FrontEnd/src/app/views/user/ChangeNicknameDialog.tsx
@@ -18,7 +18,7 @@ const ChangeNicknameDialog: React.FC<ChangeNicknameDialogProps> = (props) => {
         { type: "text", label: "userPage.dialogChangeNickname.inputLabel" },
       ]}
       onProcess={([newNickname]) => {
-        return props.onProcess(newNickname as string);
+        return props.onProcess(newNickname);
       }}
       close={props.close}
     />
-- 
cgit v1.2.3

