fix: edit account dialog fields
This commit is contained in:
parent
f7a445ac8b
commit
7331c598df
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue