fix : error

This commit is contained in:
martin legrand
2025-04-18 17:38:51 +02:00
parent c9f6d76d30
commit 600bff8da4
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ function App() {
const res = await axios.get('http://0.0.0.0:8000/latest_answer');
const data = res.data;
const answerExists = messages.some(
(msg) => msg.timestamp === data.timestamp && data.answer != undefined
(msg) => msg.timestamp === data.timestamp || data.answer != undefined
);
if (!answerExists) {
setMessages((prev) => [