File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
src/apps/review/src/lib/hooks Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -1502,6 +1502,25 @@ export function useFetchScreeningReview(): useFetchScreeningReviewProps {
15021502 reviewEntries : reviewsToRender ,
15031503 } )
15041504
1505+ const hasCheckpointReview = rowsForSubmission . some ( row => Boolean ( row . reviewId ) )
1506+ const submissionStatus = ( item . status ?? '' )
1507+ . toString ( )
1508+ . trim ( )
1509+ . toUpperCase ( )
1510+ const failedCheckpointScreening = submissionStatus === 'FAILED_CHECKPOINT_SCREENING'
1511+
1512+ if ( failedCheckpointScreening && ! hasCheckpointReview ) {
1513+ if ( debugCheckpointPhases ) {
1514+ debugLog ( 'checkpointReview.skipSubmission' , {
1515+ reason : 'failedCheckpointScreeningWithoutReview' ,
1516+ submissionId : item . id ,
1517+ submissionStatus,
1518+ } )
1519+ }
1520+
1521+ return rows
1522+ }
1523+
15051524 rows . push ( ...rowsForSubmission )
15061525
15071526 return rows
Original file line number Diff line number Diff line change @@ -69,7 +69,10 @@ const useRole = (): useRoleProps => {
6969 return ''
7070 }
7171
72- const normalizedRoles = myRoles . map ( role => role . toLowerCase ( ) )
72+ const normalizedRoles = [
73+ ...myRoles . map ( role => role . toLowerCase ( ) ) ,
74+ ...( isTopcoderAdmin ? [ 'admin' ] : [ ] ) ,
75+ ]
7376 const rolePriority : ChallengeRole [ ] = [
7477 'Admin' ,
7578 'Manager' ,
You can’t perform that action at this time.
0 commit comments