Skip to content

Commit 4afb605

Browse files
committed
fix: code
1 parent 97b16b3 commit 4afb605

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/SidebarUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)