fix: Hide AI sidebar button when AI is disabled

The button was showing when aiChatStore.enabled was undefined.
Changed condition from 'enabled !== false' to 'enabled === true'
to only show when AI is explicitly enabled.
This commit is contained in:
rcourtman 2025-12-13 16:13:25 +00:00
parent ae3e3a64f0
commit 7ae0b5cafd

View file

@ -836,7 +836,7 @@ function App() {
<ToastContainer />
<TokenRevealDialog />
{/* Fixed AI Assistant Button - always visible on the side when AI is enabled */}
<Show when={aiChatStore.enabled !== false && !aiChatStore.isOpen}>
<Show when={aiChatStore.enabled === true && !aiChatStore.isOpen}>
{/* This component only shows when chat is closed */}
<button
type="button"