diff options
author | Miodec <[email protected]> | 2024-08-11 20:09:39 +0200 |
---|---|---|
committer | Miodec <[email protected]> | 2024-08-11 20:09:39 +0200 |
commit | ec02763c7351d95d3e7613c40ba346f6b4cf60e3 (patch) | |
tree | 9170ee0bcf209c79e20884be3fcfd7f69f6e303a | |
parent | c9f046f5ce7c3d6a93841b6655494f359ff0ffdf (diff) | |
download | monkeytype-ec02763c7351d95d3e7613c40ba346f6b4cf60e3.tar.gz monkeytype-ec02763c7351d95d3e7613c40ba346f6b4cf60e3.zip |
fix order
-rw-r--r-- | frontend/src/ts/config.ts | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/frontend/src/ts/config.ts b/frontend/src/ts/config.ts index 42618c178..72fa28401 100644 --- a/frontend/src/ts/config.ts +++ b/frontend/src/ts/config.ts @@ -2123,19 +2123,6 @@ export async function loadFromLocalStorage(): Promise<void> { loadDone(); } -export function getConfigChanges(): MonkeyTypes.PresetConfig { - const configChanges = {} as MonkeyTypes.PresetConfig; - typedKeys(config) - .filter((key) => { - return config[key] !== DefaultConfig[key]; - }) - .forEach((key) => { - //@ts-expect-error this is fine - configChanges[key] = config[key]; - }); - return configChanges; -} - export function replaceLegacyValues( configObj: ConfigSchemas.PartialConfig ): ConfigSchemas.PartialConfig { @@ -2206,6 +2193,19 @@ export function replaceLegacyValues( return configObj; } +export function getConfigChanges(): MonkeyTypes.PresetConfig { + const configChanges = {} as MonkeyTypes.PresetConfig; + typedKeys(config) + .filter((key) => { + return config[key] !== DefaultConfig[key]; + }) + .forEach((key) => { + //@ts-expect-error this is fine + configChanges[key] = config[key]; + }); + return configChanges; +} + export const loadPromise = new Promise((v) => { loadDone = v; }); |