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

This commit is contained in:
teknium1 2026-07-26 21:02:27 -07:00 • committed by Teknium
parent f9cd577915
commit 2be2464d25

View file

@ -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
}