mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
empty profile-about when opening a profile
otherwise if there's no about text, the text from previously viewed profile will remain
This commit is contained in:
parent
eab8d74292
commit
42bb2cf8c5
@ -680,6 +680,7 @@ function showProfile(pub) {
|
||||
$('#profile .profile-photo-container').show();
|
||||
$('#profile .profile-photo').attr('src', photo);
|
||||
});
|
||||
$('#profile-about').empty();
|
||||
gun.user(pub).get('profile').get('about').on(about => {
|
||||
$('#profile .profile-about').toggle(about && about.length > 0);
|
||||
$('#profile .profile-about').text(about);
|
||||
|
Loading…
Reference in New Issue
Block a user