Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,12 @@ export const TabContentReview: FC<Props> = (props: Props) => {
},
[challengeInfo?.status],
)

const isSubmitterView = actionChallengeRole === SUBMITTER
&& selectedTab !== APPROVAL

const hasPassedReviewThreshold = useMemo(
() => hasSubmitterPassedThreshold(
() => !isSubmitterView || hasSubmitterPassedThreshold(
providedReviews ?? [],
myOwnedMemberIds,
props.reviewMinimumPassingScore,
Expand Down Expand Up @@ -673,8 +677,6 @@ export const TabContentReview: FC<Props> = (props: Props) => {
&& actionChallengeRole === REVIEWER

// show loading ui when fetching data
const isSubmitterView = actionChallengeRole === SUBMITTER
&& selectedTab !== APPROVAL
const reviewRows = isSubmitterView
? (shouldSortReviewTabByScore ? submitterRowsForReviewTab : filteredSubmitterReviews)
: (shouldSortReviewTabByScore ? reviewerRowsForReviewTab : filteredReviews)
Expand Down
Loading