Skip to content

Commit b82cbcf

Browse files
committed
Merge pull request #98338 from Expensify/jsenyitko-rev-db-2
[cp staging] Revert #96942 (cherry picked from commit 6f63c63) (cherry-picked to staging by Julesssss)
1 parent 84f7abb commit b82cbcf

5 files changed

Lines changed: 214 additions & 127 deletions

File tree

src/components/ReportActionItem/MoneyRequestReportPreview/ReportPreviewHeader.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ function ReportPreviewHeader() {
6666
[translate, numberOfRequests],
6767
);
6868

69-
// A cancelled payment is a report level event and it isn't surfaced by the status badge, so we show it next to the expense count.
70-
const supportingText = iouReport?.isCancelledIOU ? `${translate('iou.canceled')} ${CONST.DOT_SEPARATOR} ${expenseCount}` : expenseCount;
71-
7269
const reportStateNum = iouReport?.stateNum ?? action?.childStateNum;
7370
const reportStatusNum = iouReport?.statusNum ?? action?.childStatusNum;
7471

@@ -125,7 +122,7 @@ function ReportPreviewHeader() {
125122
tooltipText={reportStatusTooltip}
126123
/>
127124
)}
128-
{!shouldShowAccessPlaceHolder && <Text style={[styles.textLabelSupporting, styles.lh16]}>{supportingText}</Text>}
125+
{!shouldShowAccessPlaceHolder && <Text style={[styles.textLabelSupporting, styles.lh16]}>{expenseCount}</Text>}
129126
</View>
130127
)
131128
)}

0 commit comments

Comments
 (0)