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 2023-04-14 02:13:52 -05:00 committed by GitHub
parent f01d0c51d6
commit 7c259b98cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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');