('');
const fetch = async () => {
if (!reviewId) return;
try {
setIsLoading(true);
- const result = await getDetailedReviewApi({ reviewId: Number(reviewId) });
+ const result = await getDetailedReviewApi({ reviewId: Number(reviewId), memberId: Number(memberId) });
setDetailedReview(result);
setErrorMessage('');
@@ -43,7 +47,7 @@ const DetailedReviewPage = () => {
if (isLoading) return Loading...
;
if (errorMessage) return Error: {errorMessage}
;
- if (!detailedReview) return Error: '상세보기 리뷰 데이터를 가져올 수 없어요.'
;
+ if (!detailedReview) return Error: 상세보기 리뷰 데이터를 가져올 수 없어요.
;
return (
diff --git a/frontend/src/types/review.ts b/frontend/src/types/review.ts
index fc52eb147..834e943c8 100644
--- a/frontend/src/types/review.ts
+++ b/frontend/src/types/review.ts
@@ -25,7 +25,7 @@ export interface DetailReviewData {
};
};
contents: DetailReviewContent[];
- keywords: Keyword[];
+ keywords: string[];
}
// api
@@ -46,11 +46,6 @@ export interface Question {
content: string;
}
-export interface Keyword {
- id: number;
- content: string;
-}
-
export interface WritingReviewInfoData {
reviewerGroup: {
id: number;