diff --git a/cope2n-fe/src/pages/reviews2/index.tsx b/cope2n-fe/src/pages/reviews2/index.tsx index fca81ca..b654982 100644 --- a/cope2n-fe/src/pages/reviews2/index.tsx +++ b/cope2n-fe/src/pages/reviews2/index.tsx @@ -60,7 +60,6 @@ const ReviewPage = () => { const [selectedFileData, setSelectedFileData] = useState(null); const [selectedFileDataSource, setSelectedFileDataSource] = useState({}); const [selectedFileName, setSelectedFileName] = useState(null); - const [disableUpdateFileBtn, setDisableUpdateFileBtn] = useState(false); // Default date range: 1 month ago to today const [filterDateRange, setFilterDateRange] = useState(['', '']); @@ -155,8 +154,6 @@ const ReviewPage = () => { filterAccuracy, ) .then((data) => { - // setRequests(data?.subscription_requests); - // setHasNextRequest(data?.subscription_requests.length > 1); setTotalPages(data?.page?.total_requests); setHasNextRequest(requestIndex < data?.page?.total_requests); const requestData = fetchRequest( @@ -206,8 +203,6 @@ const ReviewPage = () => { filterAccuracy, ).then((data) => { setTotalPages(data?.page?.total_requests); - // setRequests(data?.subscription_requests); - // setHasNextRequest(data?.subscription_requests.length > 1); setHasNextRequest(1 < data?.page?.total_requests); const firstRequest = fetchRequest( data?.subscription_requests[0].RequestID, @@ -234,7 +229,6 @@ const ReviewPage = () => { filterAccuracy, ).then((data) => { setTotalPages(data?.page?.total_requests); - // setRequests(data?.subscription_requests); setHasNextRequest(1 < data?.page?.total_requests); const firstRequest = fetchRequest( data?.subscription_requests[0].RequestID, @@ -628,6 +622,7 @@ const ReviewPage = () => { type='primary' shape='default' size='middle' + disabled={currentRequest && currentRequest['Is Reviewed'] } style={{ minWidth: '120px', alignSelf: 'flex-end' }} onClick={handleConfirmReview} >