Skip to content

Commit

Permalink
Update src/libs/actions/Report.js
Browse files Browse the repository at this point in the history
Co-authored-by: Maria D'Costa <[email protected]>
  • Loading branch information
dukenv0307 and MariaHCD authored Jul 19, 2023
1 parent 174e335 commit bb613da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@ function addActions(reportID, text = '', file) {

// Update optimistic data for parent report action if the report is a child report
const optimisticParentReportData = ReportUtils.getOptimisticDataForParentReportAction(reportID, currentTime, CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD);
if (!_.isEmpty(optimisticParentReportData)) optimisticData.push(optimisticParentReportData);
if (!_.isEmpty(optimisticParentReportData)) {
optimisticData.push(optimisticParentReportData);
}

// Update the timezone if it's been 5 minutes from the last time the user added a comment
if (DateUtils.canUpdateTimezone()) {
Expand Down

0 comments on commit bb613da

Please sign in to comment.