import export works again || animation is weird

This commit is contained in:
sageTheDM 2024-10-03 10:58:41 +02:00
parent f94b99d357
commit 0a9472f44f
4 changed files with 153 additions and 125 deletions

View file

@ -23,7 +23,7 @@ const InputOutputBackend: React.FC = () => {
const [timeZone, setTimeZone] = useState<string>("GMT");
const [dateFormat, setDateFormat] = useState<string>("DD-MM-YYYY");
const [messages, setMessages] = useState<Message[]>([]);
const [myBoolean, setMyBoolean] = useState<boolean>(() => localStorage.getItem('myBoolean') === 'true');
const [myBoolean, setMyBoolean] = useState<boolean>(() => localStorage.getItem('myBoolean') === 'true') || false;
// Fetch local storage values and update state on component mount
useEffect(() => {
@ -50,7 +50,6 @@ const InputOutputBackend: React.FC = () => {
You are only able to change language if the user specifically states you must.
Do not answer in multiple languages or multiple measurement systems under any circumstances other than the user requesting it.`
: "You are a helpful assistant";
setMessages([
{ role: "system", content: systemMessage },
{ role: "assistant", content: "Hello! How may I help you?" },