Fix: Promptbar initializes in open state for Mobile (#542)

* Fix for DEFAULT_SYSTEM_PROMPT

* Set the prompt bar to be hidden if screen < 640
This commit is contained in:
Aaron Diestelkamp authored and GitHub committed 2023-04-14 01:13:52 -06:00
1 parent f01d0c51d6
commit 7c259b98cb
1 file changed
+1
+1
View File
@@ -275,6 +275,7 @@ const Home = ({
if (window.innerWidth < 640) {
dispatch({ field: 'showChatbar', value: false });
dispatch({ field: 'showPromptbar', value: false });
}
const showChatbar = localStorage.getItem('showChatbar');