Commit 7331c598 authored by Steven's avatar Steven

fix: edit account dialog fields

parent f7a445ac
...@@ -27,7 +27,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => { ...@@ -27,7 +27,7 @@ const UpdateAccountDialog: React.FC<Props> = ({ destroy }: Props) => {
const userStore = useUserStore(); const userStore = useUserStore();
const [state, setState] = useState<State>({ const [state, setState] = useState<State>({
avatarUrl: currentUser.avatarUrl, avatarUrl: currentUser.avatarUrl,
username: currentUser.name.replace(UserNamePrefix, ""), username: currentUser.username,
nickname: currentUser.nickname, nickname: currentUser.nickname,
email: currentUser.email, email: currentUser.email,
description: currentUser.description, description: currentUser.description,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment