Skip to content

Commit

Permalink
Hold Request, show status in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjchen committed Feb 23, 2024
1 parent 72bdedb commit 0bbfcd6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit 0bbfcd6

Please sign in to comment.