We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a17ea4 commit 7e39fbbCopy full SHA for 7e39fbb
src/apps/review/src/lib/hooks/useFetchScreeningReview.ts
@@ -701,11 +701,11 @@ export function useFetchScreeningReview(): useFetchScreeningReviewProps {
701
error: fetchChallengeReviewsError,
702
isValidating: isValidatingChallengeReviews,
703
}: SWRResponse<BackendReview[], Error> = useSWR<BackendReview[], Error>(
704
- `reviewBaseUrl/reviews/${challengeId}/${reviewerKey}`,
+ challengeId && (reviewerIds.length || shouldForceReviewFetch)
705
+ ? `reviewBaseUrl/reviews/${challengeId}/${reviewerKey}`
706
+ : null,
707
{
708
fetcher: () => fetchChallengeReviews(challengeId ?? ''),
- isPaused: () => !challengeId
- || (!reviewerIds.length && !shouldForceReviewFetch),
709
},
710
)
711
0 commit comments