fix: edit account dialog fields

This commit is contained in:
Steven 2024-03-29 08:19:32 +08:00
parent f7a445ac8b
commit 7331c598df

View file

@ -27,7 +27,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
const userStore = useUserStore();
const [state, setState] = useState<State>({
avatarUrl: currentUser.avatarUrl,
username: currentUser.name.replace(UserNamePrefix, ""),
username: currentUser.username,
nickname: currentUser.nickname,
email: currentUser.email,
description: currentUser.description,