Skip to content

Commit 4bd3f84

Browse files
committed
fix: hide Paid text with non-reimbursable expense
1 parent 00ab652 commit 4bd3f84

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/ReportActionItem/MoneyRequestView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ function MoneyRequestView({allReports, report, policy, shouldShowAnimatedBackgro
201201
const isSettled = isSettledReportUtils(moneyRequestReport?.reportID);
202202
const isCancelled = moneyRequestReport && moneyRequestReport?.isCancelledIOU;
203203
const isChatReportArchived = useReportIsArchived(moneyRequestReport?.chatReportID);
204+
const shouldShowPaid = isSettled && transactionReimbursable;
204205

205206
// Flags for allowing or disallowing editing an expense
206207
// Used for non-restricted fields such as: description, category, tag, billable, etc...
@@ -328,7 +329,7 @@ function MoneyRequestView({allReports, report, policy, shouldShowAnimatedBackgro
328329
amountDescription += ` ${CONST.DOT_SEPARATOR} ${translate('iou.canceled')}`;
329330
} else if (isApproved) {
330331
amountDescription += ` ${CONST.DOT_SEPARATOR} ${translate('iou.approved')}`;
331-
} else if (isSettled) {
332+
} else if (shouldShowPaid) {
332333
amountDescription += ` ${CONST.DOT_SEPARATOR} ${translate('iou.settledExpensify')}`;
333334
}
334335
}
@@ -654,7 +655,7 @@ function MoneyRequestView({allReports, report, policy, shouldShowAnimatedBackgro
654655
<OfflineWithFeedback pendingAction={getPendingFieldAction('amount') ?? (amountTitle ? getPendingFieldAction('customUnitRateID') : undefined)}>
655656
<MenuItemWithTopDescription
656657
title={amountTitle}
657-
shouldShowTitleIcon={isSettled}
658+
shouldShowTitleIcon={shouldShowPaid}
658659
titleIcon={Expensicons.Checkmark}
659660
description={amountDescription}
660661
titleStyle={styles.textHeadlineH2}

0 commit comments

Comments
 (0)