mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
fix: public profile link broken after updating account name
!nuf closes #5935
This commit is contained in:
parent
efd8f00610
commit
f938122117
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue