Ran prettier and fixed permanent loadingScreen in assistant_reply

This commit is contained in:
jojopirker
2022-12-29 08:01:19 +01:00
parent d4887e0054
commit 29bd355529
5 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -40,14 +40,14 @@ const AssistantReply = () => {
});
};
if (true) {
return (<LoadingScreen text="Loading..."/>);
if (isLoading) {
return <LoadingScreen text="Loading..." />;
}
if (tasks.length == 0) {
return <div className="p-6 bg-slate-100 text-gray-800">No tasks found...</div>;
}
const task = tasks[0].task;
return (
<div className="p-6 bg-slate-100 text-gray-800">