File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -349,11 +349,11 @@ function categorizeReportsForLHN(
349349
350350 const isPinned = ! ! report . isPinned ;
351351 const requiresAttention = ! ! reportAttributes ?. [ reportID ] ?. requiresAttention ;
352- const hasErrors = ! ! report . hasErrorsOtherThanFailedReceipt ;
352+ const hasDraft = reportID ? hasValidDraftComment ( reportID ) : false ;
353353 const reportNameValuePairsKey = `${ ONYXKEYS . COLLECTION . REPORT_NAME_VALUE_PAIRS } ${ reportID } ` ;
354354 const rNVPs = reportNameValuePairs ?. [ reportNameValuePairsKey ] ;
355355 const isArchived = isArchivedNonExpenseReport ( report , ! ! rNVPs ?. private_isArchived ) ;
356- const hasDraft = reportID && ! isArchived ? hasValidDraftComment ( reportID ) : false ;
356+ const hasErrors = ! ! report . hasErrorsOtherThanFailedReceipt && ! isArchived ;
357357
358358 precomputedReports . push ( {
359359 miniReport,
You can’t perform that action at this time.
0 commit comments