From bbefbbcb6446e37813e40a4a86c3fe342d736b29 Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Tue, 23 Jul 2024 08:39:24 +0800 Subject: [PATCH] fix: Fix old user information still showing when editing repeatedly --- ui/src/hooks/useChangeProfileModal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/hooks/useChangeProfileModal/index.tsx b/ui/src/hooks/useChangeProfileModal/index.tsx index 6d0ce456..6f85e25d 100644 --- a/ui/src/hooks/useChangeProfileModal/index.tsx +++ b/ui/src/hooks/useChangeProfileModal/index.tsx @@ -112,7 +112,7 @@ const useChangeProfileModal = (props: IProps = {}, userData) => { }>(null); const onClose = () => { - setFormData(initFormData(schema)); + setFormData(formData); setVisibleState(false); };