From 290c0d229e6e25a06a833149b199cb73dfe9dde2 Mon Sep 17 00:00:00 2001 From: Vukasin Date: Fri, 18 Jul 2025 22:34:09 +0200 Subject: [PATCH] fix: snack logic --- frontend/src/components/thread/chat-input/chat-input.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/thread/chat-input/chat-input.tsx b/frontend/src/components/thread/chat-input/chat-input.tsx index 575b1d47..25d7ecb0 100644 --- a/frontend/src/components/thread/chat-input/chat-input.tsx +++ b/frontend/src/components/thread/chat-input/chat-input.tsx @@ -163,6 +163,8 @@ export const ChatInput = forwardRef( useEffect(() => { if (shouldShowUsage && defaultShowSnackbar !== false && (showSnackbar === false || showSnackbar === defaultShowSnackbar)) { setShowSnackbar('upgrade'); + } else if (!shouldShowUsage && showSnackbar !== false) { + setShowSnackbar(false); } }, [subscriptionData, showSnackbar, defaultShowSnackbar, shouldShowUsage, subscriptionStatus, showToLowCreditUsers]);