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:
parent
ae3e3a64f0
commit
7ae0b5cafd
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue