Don't replace all keys in profile update.

This commit is contained in:
Thomas Mathews 2022-12-29 19:19:39 -08:00
parent fe3f794e01
commit 02f8b7706e

View file

@ -356,6 +356,7 @@ function click_update_profile() {
nip05: find_node("input[name='nip05']", el).value,
about: find_node("textarea[name='about']", el).value,
};
Object.assign(p, model_get_profile(DAMUS, DAMUS.pubkey).data, p);
update_profile(p);
close_modal(el);
// TODO show toast that say's "broadcasted!"