filter fixes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user