Skip to content

Commit

Permalink
fix: public profile link broken after updating account name
Browse files Browse the repository at this point in the history
!nuf

closes #5935
  • Loading branch information
Miodec committed Oct 7, 2024
1 parent efd8f00 commit f938122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/ts/modals/simple-modals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f938122

Please sign in to comment.