Skip to content

Commit b067a44

Browse files
MelvinBottruph01
andcommitted
Move isClosedReport check into RECEIPT return block
Co-authored-by: truph01 <truph01@users.noreply.github.com>
1 parent cbbbc8c commit b067a44

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4892,10 +4892,6 @@ function canEditFieldOfMoneyRequest(
48924892
return false;
48934893
}
48944894

4895-
if (fieldToEdit === CONST.EDIT_REQUEST_FIELD.RECEIPT && isClosedReport(moneyRequestReport)) {
4896-
return false;
4897-
}
4898-
48994895
if ((fieldToEdit === CONST.EDIT_REQUEST_FIELD.AMOUNT || fieldToEdit === CONST.EDIT_REQUEST_FIELD.CURRENCY) && isCardTransactionTransactionUtils(transaction)) {
49004896
return false;
49014897
}
@@ -4928,6 +4924,7 @@ function canEditFieldOfMoneyRequest(
49284924

49294925
if (fieldToEdit === CONST.EDIT_REQUEST_FIELD.RECEIPT) {
49304926
return (
4927+
!isClosedReport(moneyRequestReport) &&
49314928
!isInvoiceReport(moneyRequestReport) &&
49324929
!isReceiptBeingScanned(transaction) &&
49334930
!isPerDiemRequest(transaction) &&

0 commit comments

Comments
 (0)