From 0bbfcd6194bd80aba2268112b9042a9c0b24c313 Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Thu, 22 Feb 2024 18:38:12 -0800 Subject: [PATCH] Hold Request, show status in preview --- .../MoneyRequestPreview/MoneyRequestPreviewContent.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx b/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx index 8503ba9afa06..bdeaa7519952 100644 --- a/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx +++ b/src/components/ReportActionItem/MoneyRequestPreview/MoneyRequestPreviewContent.tsx @@ -93,6 +93,7 @@ function MoneyRequestPreviewContent({ const isFetchingWaypointsFromServer = TransactionUtils.isFetchingWaypointsFromServer(transaction); const isCardTransaction = TransactionUtils.isCardTransaction(transaction); const isSettled = ReportUtils.isSettled(iouReport?.reportID); + const isOnHold = TransactionUtils.isOnHold(transaction); const isDeleted = action?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; /* @@ -164,6 +165,8 @@ function MoneyRequestPreviewContent({ message += ` • ${translate('iou.pending')}`; } else if (iouReport?.isCancelledIOU) { message += ` • ${translate('iou.canceled')}`; + } else if (isOnHold) { + message += ` • ${translate('iou.hold')}`; } return message; };