mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-11-20 06:49:52 +01:00
Fix bug
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
321ee96620
commit
d2a9e179f0
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ function ProfileEditor({ userId }) {
|
|||
mx.getProfileInfo(mx.getUserId()).then((info) => {
|
||||
if (!isMounted) return;
|
||||
setAvatarSrc(info.avatar_url ? mx.mxcUrlToHttp(info.avatar_url, 80, 80, 'crop') : null);
|
||||
setUsername(info.displayname);
|
||||
});
|
||||
return () => {
|
||||
isMounted = false;
|
||||
|
|
Loading…
Reference in a new issue