diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 5e50f69e28faf..ae5fc41c063d4 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -2012,9 +2012,6 @@ function canAddOrDeleteTransactions(moneyRequestReport: OnyxEntry): bool } const policy = getPolicy(moneyRequestReport?.policyID); - if (isInstantSubmitEnabled(policy) && isSubmitAndClose(policy) && hasOnlyNonReimbursableTransactions(moneyRequestReport?.reportID)) { - return false; - } if (isInstantSubmitEnabled(policy) && isSubmitAndClose(policy) && !arePaymentsEnabled(policy)) { return false; @@ -2047,6 +2044,11 @@ function canAddTransaction(moneyRequestReport: OnyxEntry): boolean { return false; } + const policy = getPolicy(moneyRequestReport?.policyID); + if (isInstantSubmitEnabled(policy) && isSubmitAndClose(policy) && hasOnlyNonReimbursableTransactions(moneyRequestReport?.reportID)) { + return false; + } + return canAddOrDeleteTransactions(moneyRequestReport); }