Skip to content

Commit b493343

Browse files
committed
fix hold option available for paid expense
1 parent 59cca89 commit b493343

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/MoneyReportHeader.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,9 @@ function MoneyReportHeader({policy, report: moneyRequestReport, transactionThrea
204204

205205
const anyTransactionOnHold = selectedTransactions.some(isOnHoldTransactionUtils);
206206
const allTransactionOnHold = selectedTransactions.every(isOnHoldTransactionUtils);
207+
const isReportReimbursed = moneyRequestReport?.stateNum === CONST.REPORT.STATE_NUM.APPROVED && moneyRequestReport?.statusNum === CONST.REPORT.STATUS_NUM.REIMBURSED;
207208

208-
if (!anyTransactionOnHold && selectedTransactions.length === 1) {
209+
if (!anyTransactionOnHold && selectedTransactions.length === 1 && !isReportReimbursed) {
209210
options.push({
210211
text: translate('iou.hold'),
211212
icon: Expensicons.Stopwatch,

0 commit comments

Comments
 (0)