fix: poll votes after reaching minimum message count (#869)

This commit is contained in:
Jeremy 2025-03-16 20:22:34 -07:00 committed by GitHub
parent 47a630fd53
commit 90e1c8368e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,7 @@ export function Chat({
});
const { data: votes } = useSWR<Array<Vote>>(
`/api/vote?chatId=${id}`,
messages.length >= 2 ? `/api/vote?chatId=${id}` : null,
fetcher,
);