Skip to content

Commit 921598d

Browse files
authored
Merge pull request #55655 from thelullabyy/fix/55263-rbr-mising-in-expense-preview
fix: rbr is not displayed in report preview
2 parents cfc5400 + 6fc65b1 commit 921598d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/actions/IOU.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8911,7 +8911,7 @@ function putOnHold(transactionID: string, comment: string, reportID: string, sea
89118911
const currentTime = DateUtils.getDBTime();
89128912
const createdReportAction = buildOptimisticHoldReportAction(currentTime);
89138913
const createdReportActionComment = buildOptimisticHoldReportActionComment(comment, DateUtils.addMillisecondsFromDateTime(currentTime, 1));
8914-
const newViolation = {name: CONST.VIOLATIONS.HOLD, type: CONST.VIOLATION_TYPES.VIOLATION};
8914+
const newViolation = {name: CONST.VIOLATIONS.HOLD, type: CONST.VIOLATION_TYPES.VIOLATION, showInReview: true};
89158915
const transactionViolations = allTransactionViolations[`${ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS}${transactionID}`] ?? [];
89168916
const updatedViolations = [...transactionViolations, newViolation];
89178917
const parentReportActionOptimistic = getOptimisticDataForParentReportAction(reportID, createdReportActionComment.created, CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD);

0 commit comments

Comments
 (0)