修复设置头像

This commit is contained in:
whyour 2022-05-09 15:32:44 +08:00
parent 6c368f7ea7
commit 868452f13c

View File

@ -98,6 +98,7 @@ const SecuritySettings = ({ user, userChange }: any) => {
useEffect(() => { useEffect(() => {
setTwoFactorActivated(user && user.twoFactorActivated); setTwoFactorActivated(user && user.twoFactorActivated);
setAvatar(user && user.avatar);
}, [user]); }, [user]);
return twoFactoring ? ( return twoFactoring ? (