Skip to content

Commit bb153eb

Browse files
committed
fix 63909
1 parent 68b7d43 commit bb153eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/MoneyReportHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function MoneyReportHeader({
290290
const isSubmitterSameAsNextApprover = isReportOwner(moneyRequestReport) && nextApproverAccountID === moneyRequestReport?.ownerAccountID;
291291
const optimisticNextStep = isSubmitterSameAsNextApprover && policy?.preventSelfApproval ? buildOptimisticNextStepForPreventSelfApprovalsEnabled() : nextStep;
292292

293-
const shouldShowNextStep = isFromPaidPolicy && !isInvoiceReport && !shouldShowStatusBar;
293+
const shouldShowNextStep = isFromPaidPolicy && !isInvoiceReport && !shouldShowStatusBar && transactions.length > 0;
294294
const bankAccountRoute = getBankAccountRoute(chatReport);
295295
const {nonHeldAmount, fullAmount, hasValidNonHeldAmount} = getNonHeldAndFullAmount(moneyRequestReport, shouldShowPayButton);
296296
const isAnyTransactionOnHold = hasHeldExpensesReportUtils(moneyRequestReport?.reportID);

0 commit comments

Comments
 (0)