diff --git a/public/scripts/sysprompt.js b/public/scripts/sysprompt.js index ea59068d2..b4103eb0d 100644 --- a/public/scripts/sysprompt.js +++ b/public/scripts/sysprompt.js @@ -105,7 +105,7 @@ function toggleSystemPromptCallback(_args, state) { } const newState = isTrueBoolean(state); - newState ? setSystemPromptStateCallback(true) : setSystemPromptStateCallback(false); + setSystemPromptStateCallback(newState); return String(power_user.sysprompt.enabled); }