mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 10:11:13 -05:00
Refactor: Implement type safety plan
This commit is contained in:
@@ -61,7 +61,7 @@ export function ReviewsList({ entityType, entityId, entityName }: ReviewsListPro
|
||||
}
|
||||
|
||||
const { data } = await query;
|
||||
setReviews(data as any || []);
|
||||
setReviews((data || []) as ReviewWithProfile[]);
|
||||
} catch (error) {
|
||||
console.error('Error fetching reviews:', error);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user