From 99cc7042ea06008cfc98a0a3d5eb3749ddaa2ba9 Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 24 Apr 2024 14:54:02 +0200 Subject: [PATCH] fix(custom text): limit sometimes being set incorrectly in simple mode --- frontend/src/ts/modals/custom-text.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/ts/modals/custom-text.ts b/frontend/src/ts/modals/custom-text.ts index 0fc8360b228c..7fa628177241 100644 --- a/frontend/src/ts/modals/custom-text.ts +++ b/frontend/src/ts/modals/custom-text.ts @@ -346,6 +346,9 @@ function apply(): void { if (state.customTextMode === "simple") { CustomText.setMode("repeat"); + state.customTextLimits.word = `${text.length}`; + state.customTextLimits.time = ""; + state.customTextLimits.section = ""; } else { CustomText.setMode(state.customTextMode); }