fix: public profile link broken after updating account name

!nuf

closes #5935
This commit is contained in:
Miodec 2024-10-07 12:58:34 +02:00
parent efd8f00610
commit f938122117

View file

@ -491,11 +491,12 @@ list.updateName = new SimpleModal({
const snapshot = DB.getSnapshot();
if (snapshot) {
snapshot.name = newName;
DB.setSnapshot(snapshot);
if (snapshot.needsToChangeName) {
reloadAfter(2);
}
AccountButton.update(snapshot);
}
AccountButton.updateName(newName);
return {
status: 1,