Skip to content

Commit

Permalink
fix(custom text): limit sometimes being set incorrectly in simple mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Apr 24, 2024
1 parent 0d57735 commit 99cc704
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/ts/modals/custom-text.ts
Expand Up @@ -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);
}
Expand Down

0 comments on commit 99cc704

Please sign in to comment.