diff --git a/public/scripts/extensions/objective/index.js b/public/scripts/extensions/objective/index.js index ef17d439a..74ab41719 100644 --- a/public/scripts/extensions/objective/index.js +++ b/public/scripts/extensions/objective/index.js @@ -307,6 +307,8 @@ function onChatDepthInput() { // Update how often we check for task completion function onCheckFrequencyInput() { + checkCounter = $("#objective-check-frequency").val() + $('#objective-counter').text(checkCounter) saveState() } @@ -402,10 +404,9 @@ jQuery(() => { } if ($("#objective-check-frequency").val() > 0) { // Check only at specified interval - if (checkCounter > 0) { - return + if (checkCounter <= 0) { + checkTaskCompleted(); } - checkTaskCompleted(); checkCounter -= 1 } setCurrentTask();