Skip to content

Commit 36e3ad9

Browse files
committed
fix(Adjusted chats.tsx by fixing the Supabase loading system)
1 parent a46ef47 commit 36e3ad9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/ui/chats.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ type BotReply = string | undefined;
1414

1515
interface ChatProp {
1616
author: {
17-
id: string;
1817
name: string;
1918
image: string;
2019
};
@@ -148,7 +147,7 @@ export default function Chats({ author }: ChatProp) {
148147
const { data, error } = await supabase
149148
.from("bot_chat_messages")
150149
.select("*")
151-
.eq("author", author.id)
150+
.eq("author", author.name)
152151
.order("timestamp", { ascending: true });
153152

154153
if (error) {

0 commit comments

Comments
 (0)