changes/fixes + some WIP

This commit is contained in:
Daniel
2023-05-26 23:22:18 +03:30
parent ffecdf21a0
commit 7f3d93517d
9 changed files with 314 additions and 26 deletions
-10
View File
@@ -41,16 +41,6 @@ export default function UserSettings({ toggleSettingsModal }: Props) {
setUser({ ...user, oldPassword, newPassword });
};
// useEffect(() => {
// const determineProfilePicSource = async () => {
// const path = `/api/avatar/${account.id}`;
// const imageExists = await avatarExists(path).catch((e) => console.log(e));
// if (imageExists) setUser({ ...user, profilePic: path });
// };
// determineProfilePicSource();
// }, []);
useEffect(() => {
setUser({
...user,