use all states

This commit is contained in:
Alex
2023-09-12 17:43:41 +01:00
parent 45f1bf6709
commit 24a162cf86
6 changed files with 22 additions and 24 deletions

View File

@@ -129,9 +129,7 @@ export const DocsGPTWidget = ({ apiHost = 'https://gptcloud.arc53.com', selectDo
}, [answer]);
useEffect(() => {
if (chatState === ChatStates.Init || chatState === ChatStates.Minimized) {
localStorage.setItem('docsGPTChatState', chatState);
}
localStorage.setItem('docsGPTChatState', chatState);
}, [chatState]);