Skip to content

Commit

Permalink
UI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonburchel committed Jul 28, 2024
1 parent 1d5f052 commit 11468d4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion frontend/dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

26 changes: 10 additions & 16 deletions frontend/src/pages/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,31 +103,25 @@ const Chat = () => {
}, [showLoadingMessage]);

useEffect(() => {
console.log("useEffect for updateStatusDotsToLookAlive triggered");
const updateStatusDotsToLookAlive = async () => {
try {
console.log("showLoadingMessage: " + showLoadingMessage);
if (showLoadingMessage)
{
if (showLoadingMessage) {
console.log("index of ... : " + statusMessage.indexOf("...."));
if (statusMessage.indexOf("....") !== -1)
{
if (statusMessage.indexOf("....") !== -1) {
setStatusMessage(statusMessage.replace("....", "."));
}
}
else
{
setStatusMessage(statusMessage + ".");
}
}
}
else {
setStatusMessage(statusMessage + ".");
}
}
catch (error)
{
catch (error) {
console.error('Error fetching status:', error);
}

const intervalId = setInterval(updateStatusDotsToLookAlive, 500);
return () => clearInterval(intervalId); // Cleanup on unmount
}
const intervalId = setInterval(updateStatusDotsToLookAlive, 500);
return () => clearInterval(intervalId); // Cleanup on unmount
}, [showLoadingMessage]);

useEffect(() => {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<link rel="icon" type="image/x-icon" href="{{ favicon }}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title }}</title>
<script type="module" crossorigin src="/assets/index-abdda794.js"></script>
<script type="module" crossorigin src="/assets/index-daab7af8.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-e3678f2f.js">
<link rel="stylesheet" href="/assets/index-61492790.css">
</head>
Expand Down

0 comments on commit 11468d4

Please sign in to comment.