filter fixes

This commit is contained in:
2026-07-13 11:16:24 -04:00
parent 6c5050c4ce
commit c3f5c09fe9
+1
View File
@@ -232,6 +232,7 @@ function RatingsPage({ user }: Props) {
const cat = dist.categories.find((c: { id: number }) => c.id === ratingCategoryId);
if (cat) setDistributions((prev) => ({ ...prev, [distKey]: { accountRatings: cat.accountRatings, anonRatings: cat.anonRatings, average: cat.average, totalVotes: cat.totalVotes } }));
}
if (!(showVoted && showUnvoted)) fetchRatings();
}
async function toggleStar(ratingId: number, ratingCategoryId: number) {