Skip to content

Commit 000de5c

Browse files
committed
don't show rbr in iou participants page
1 parent 70a8fa7 commit 000de5c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/libs/OptionsListUtils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ type GetValidReportsConfig = {
225225
shouldSeparateSelfDMChat?: boolean;
226226
excludeNonAdminWorkspaces?: boolean;
227227
isPerDiemRequest?: boolean;
228+
showRBR?: boolean;
228229
} & GetValidOptionsSharedConfig;
229230

230231
type GetValidReportsReturnTypeCombined = {
@@ -1585,6 +1586,7 @@ function getValidReports(reports: OptionList['reports'], config: GetValidReports
15851586
shouldSeparateWorkspaceChat,
15861587
excludeNonAdminWorkspaces,
15871588
isPerDiemRequest = false,
1589+
showRBR = true,
15881590
} = config;
15891591
const topmostReportId = Navigation.getTopmostReportId();
15901592

@@ -1731,6 +1733,7 @@ function getValidReports(reports: OptionList['reports'], config: GetValidReports
17311733
isSelected,
17321734
isBold,
17331735
lastIOUCreationDate,
1736+
brickRoadIndicator: showRBR ? option.brickRoadIndicator : null,
17341737
};
17351738

17361739
if (shouldSeparateWorkspaceChat && newReportOption.isOwnPolicyExpenseChat && !newReportOption.private_isArchived) {

src/pages/iou/request/MoneyRequestParticipantsSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ function MoneyRequestParticipantsSelector({
187187
includeSelfDM: !isMovingTransactionFromTrackExpense(action) && iouType !== CONST.IOU.TYPE.INVOICE,
188188
canShowManagerMcTest: !hasBeenAddedToNudgeMigration && action !== CONST.IOU.ACTION.SUBMIT,
189189
isPerDiemRequest,
190+
showRBR: false,
190191
},
191192
);
192193

0 commit comments

Comments
 (0)