Skip to content

Commit 8e0ee71

Browse files
committed
Remove the created-ordering comment in getNewestOutstandingReportForUser
1 parent 804f262 commit 8e0ee71

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎src/libs/ReportUtils.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12195,7 +12195,6 @@ function getNewestOutstandingReportForUser(
1219512195
): OnyxInputValue<Report> {
1219612196
const openReports = getOutstandingReportsForUser(policyID, reportOwnerAccountID, rules, reportNameValuePairs, reports, false).filter(isOpenExpenseReport);
1219712197

12198-
// `created` is a fixed-width UTC datetime string, so ordinary string ordering is already chronological.
1219912198
return openReports.reduce<OnyxInputValue<Report>>((newest, report) => ((report?.created ?? '') > (newest?.created ?? '') ? (report ?? null) : newest), openReports.at(0) ?? null);
1220012199
}
1220112200

0 commit comments

Comments
 (0)