Skip to content

Commit 10c3dfb

Browse files
committed
clarify comment for unavailable iouReport
Signed-off-by: Mustafa Daglioglu <[email protected]>
1 parent 5bdc75c commit 10c3dfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libs/ReportUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4015,10 +4015,10 @@ function getReportPreviewMessage(
40154015
const reportActionMessage = getReportActionHtml(iouReportAction);
40164016

40174017
if (isEmptyObject(report) || !report?.reportID) {
4018-
// The IOU report associated with this action might not be loaded into the 'allReports'
4019-
// Alternatively, settled IOU reports might not be returned by the backend's OpenApp command.
4020-
// In either case, we lack the full report details needed for rich formatting,
4021-
// As a temporary solution until we know how to solve this the best, we just use the message that returned from BE
4018+
// This iouReport may be unavailable for one of the following reasons:
4019+
// 1. After SignIn, the OpenApp API won't return iouReports if they're settled.
4020+
// 2. The iouReport exists in local storage but hasn't been loaded into the allReports. It will be loaded automatically when the user opens the iouReport.
4021+
// Until we know how to solve this the best, we just display the report action message.
40224022
return reportActionMessage;
40234023
}
40244024

0 commit comments

Comments
 (0)