Skip to content

The agent that grows with you

fix(desktop): satisfy eslint in approvals-command rebase

teknium12be2464d259a
diff --git a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx
index 068ac9f23ca..d3aa1cfbb3b 100644
--- a/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx
+++ b/apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx
@@ -940,7 +940,9 @@ describe('usePromptActions slash.exec dispatch payloads', () => {
const profile = sessionProfiles.get(sessionId)
const command = String(params?.command ?? '')
- if (profile && command === 'approvals off') persistedModes.set(profile, 'off')
+ if (profile && command === 'approvals off') {
+ persistedModes.set(profile, 'off')
+ }
return { output: 'Approval mode: off (persistent profile setting).' } as never
}