Timothy J. Baek преди 10 месеца
родител
ревизия
284ab648b6
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      src/lib/components/chat/Chat.svelte

+ 2 - 3
src/lib/components/chat/Chat.svelte

@@ -534,9 +534,8 @@
 										const createdAtDate = new Date(createdAtTimestamp * 1000)
 										const createdAtDate = new Date(createdAtTimestamp * 1000)
 											.toISOString()
 											.toISOString()
 											.split('T')[0];
 											.split('T')[0];
-										acc.push(`${index + 1}. [${createdAtDate}]. ${doc}`);
-										return acc;
-									}, []);
+										return `${acc}${index + 1}. [${createdAtDate}]. ${doc}\n`;
+									}, '');
 								}
 								}
 
 
 								console.log(userContext);
 								console.log(userContext);