fix: showing snack

This commit is contained in:
Vukasin 2025-07-18 00:21:24 +02:00
parent 86928c9d4a
commit 9c62b8e805
2 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ export const ChatInput = forwardRef<ChatInputHandles, ChatInputProps>(
// 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]);

View File

@ -156,7 +156,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
const renderDropdown = () => {
if (isLoggedIn) {
const showAdvancedFeatures = enableAdvancedConfig || (customAgentsEnabled && !flagsLoading);
return (
<div className="flex items-center gap-2">
{showAdvancedFeatures && !hideAgentSelection && (
@ -223,7 +223,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
</div>
{subscriptionStatus === 'no_subscription' && !isLocalMode() &&
{/* {subscriptionStatus === 'no_subscription' && !isLocalMode() &&
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
@ -234,7 +234,7 @@ export const MessageInput = forwardRef<HTMLTextAreaElement, MessageInputProps>(
</TooltipContent>
</Tooltip>
</TooltipProvider>
}
} */}
<div className='flex items-center gap-2'>
{renderDropdown()}