From 9c62b8e805270c3064d5a00aeeb7884a7398079d Mon Sep 17 00:00:00 2001 From: Vukasin Date: Fri, 18 Jul 2025 00:21:24 +0200 Subject: [PATCH] fix: showing snack --- frontend/src/components/thread/chat-input/chat-input.tsx | 2 +- frontend/src/components/thread/chat-input/message-input.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/thread/chat-input/chat-input.tsx b/frontend/src/components/thread/chat-input/chat-input.tsx index cfc69003..20a55c8e 100644 --- a/frontend/src/components/thread/chat-input/chat-input.tsx +++ b/frontend/src/components/thread/chat-input/chat-input.tsx @@ -142,7 +142,7 @@ export const ChatInput = forwardRef( // Auto-show usage preview when we have subscription data useEffect(() => { - if (shouldShowUsage && (showSnackbar === false || showSnackbar === defaultShowSnackbar)) { + if (shouldShowUsage && defaultShowSnackbar !== false && (showSnackbar === false || showSnackbar === defaultShowSnackbar)) { setShowSnackbar('upgrade'); } }, [subscriptionData, showSnackbar, defaultShowSnackbar, shouldShowUsage]); diff --git a/frontend/src/components/thread/chat-input/message-input.tsx b/frontend/src/components/thread/chat-input/message-input.tsx index ded27ec4..2ffff07d 100644 --- a/frontend/src/components/thread/chat-input/message-input.tsx +++ b/frontend/src/components/thread/chat-input/message-input.tsx @@ -156,7 +156,7 @@ export const MessageInput = forwardRef( const renderDropdown = () => { if (isLoggedIn) { const showAdvancedFeatures = enableAdvancedConfig || (customAgentsEnabled && !flagsLoading); - + return (
{showAdvancedFeatures && !hideAgentSelection && ( @@ -223,7 +223,7 @@ export const MessageInput = forwardRef(
- {subscriptionStatus === 'no_subscription' && !isLocalMode() && + {/* {subscriptionStatus === 'no_subscription' && !isLocalMode() && @@ -234,7 +234,7 @@ export const MessageInput = forwardRef( - } + } */}
{renderDropdown()}