mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-01 09:14:27 +08:00
fixed a bug where updating the preset name would not immediately show the update
This commit is contained in:
parent
a5ceda8ac7
commit
43205d3287
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ async function apply(): Promise<void> {
|
|||
(preset: MonkeyTypes.Preset) => preset._id === presetId
|
||||
)[0];
|
||||
preset.name = presetName;
|
||||
preset.display = presetName.replace(/_/g, " ");
|
||||
if (updateConfig) {
|
||||
preset.config = configChanges;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue