We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54a8a42 commit 7f9679bCopy full SHA for 7f9679b
components/ui/chats.tsx
@@ -143,9 +143,9 @@ export default function Chats({ author }: ChatProp) {
143
async function loadMessagesFromSupabase() {
144
try {
145
const { data, error } = await supabase
146
- .from("bot_chat_messages")
+ .from("bot_user_messages")
147
.select("*")
148
- .eq("author", author)
+ .eq("author", author.name)
149
.order("timestamp", { ascending: true });
150
151
if (error) throw error;
@@ -159,7 +159,7 @@ export default function Chats({ author }: ChatProp) {
159
}
160
161
loadMessagesFromSupabase();
162
- }, [author]);
+ }, [author.name]);
163
164
return (
165
<div className="flex min-h-[100dvh] bg-[#1a1a1a] text-white">
0 commit comments