From b2a86049941d1404f8409a1acd25a2298bfac092 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 29 May 2024 14:59:59 +0200 Subject: [PATCH] fix(presets): punctuation and numbers modes not being enabled in certain situations this was done by moving the setter functions to be called after setting the mode config closes #5454 --- frontend/src/ts/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/config.ts b/frontend/src/ts/config.ts index 7a30c2b5f..9b81de7ad 100644 --- a/frontend/src/ts/config.ts +++ b/frontend/src/ts/config.ts @@ -1874,8 +1874,6 @@ export async function apply( setMinWpmCustomSpeed(configObj.minWpmCustomSpeed, true); setMinAcc(configObj.minAcc, true); setMinAccCustom(configObj.minAccCustom, true); - setNumbers(configObj.numbers, true); - setPunctuation(configObj.punctuation, true); setHighlightMode(configObj.highlightMode, true); setTypingSpeedUnit(configObj.typingSpeedUnit, true); setHideExtraLetters(configObj.hideExtraLetters, true); @@ -1883,6 +1881,8 @@ export async function apply( setStrictSpace(configObj.strictSpace, true); setOppositeShiftMode(configObj.oppositeShiftMode, true); setMode(configObj.mode, true); + setNumbers(configObj.numbers, true); + setPunctuation(configObj.punctuation, true); setMonkey(configObj.monkey, true); setRepeatQuotes(configObj.repeatQuotes, true); setMonkeyPowerLevel(configObj.monkeyPowerLevel, true);