From 986d33fcdd71222ffa2950fbc3446d3fbbd54d3d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 20 Sep 2024 00:26:29 +0300 Subject: [PATCH] Commit suggestion Co-authored-by: Wolfsblvt --- public/scripts/sysprompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }