diff --git a/src/components/comment-section.tsx b/src/components/comment-section.tsx
index ca0a658..9f30b48 100644
--- a/src/components/comment-section.tsx
+++ b/src/components/comment-section.tsx
@@ -86,11 +86,7 @@ export function CommentSection({ productId, mockComments }: Props) {
{comments.map((comment) => {
- const author = comment.author as unknown as {
- display_name: string;
- handle: string | null;
- avatar_url: string | null;
- };
+ const author = comment.author;
return (
diff --git a/src/types/database.ts b/src/types/database.ts
index 461be2b..28e80fa 100644
--- a/src/types/database.ts
+++ b/src/types/database.ts
@@ -36,6 +36,7 @@ export interface Product {
}
export type ProductBuilder = Pick
;
+export type CommentAuthor = Pick;
export interface ProductWithCounts extends Product {
vote_count: number;
@@ -57,7 +58,7 @@ export interface Comment {
body: string;
status: CommentStatus;
created_at: string;
- author?: Pick;
+ author?: CommentAuthor;
}
export interface DemoDay {