diff --git a/frontend/src/ts/modals/simple-modals.ts b/frontend/src/ts/modals/simple-modals.ts index 89bc1195b..ec4af4a24 100644 --- a/frontend/src/ts/modals/simple-modals.ts +++ b/frontend/src/ts/modals/simple-modals.ts @@ -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,