Skip to content

Commit 827087d

Browse files
committed
fix: report comment
1 parent 8fc3ac4 commit 827087d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4560,6 +4560,7 @@ function canEditMoneyRequest(
45604560

45614561
const transaction = linkedTransaction ?? getLinkedTransaction(reportAction ?? undefined);
45624562

4563+
// In case the transaction is failed to be created, we should disable editing the money request
45634564
if (!transaction?.transactionID || (transaction?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD && !isEmptyObject(transaction.errors))) {
45644565
return false;
45654566
}

0 commit comments

Comments
 (0)