Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: edit account dialog fields

Steven7331c598dfc8
diff --git a/web/src/components/UpdateAccountDialog.tsx b/web/src/components/UpdateAccountDialog.tsx
index 1943f2255..07e14bb32 100644
--- a/web/src/components/UpdateAccountDialog.tsx
+++ b/web/src/components/UpdateAccountDialog.tsx
@@ -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,