File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4019,7 +4019,8 @@ function canEditFieldOfMoneyRequest(reportAction: OnyxInputOrEntry<ReportAction>
40194019 }
40204020
40214021 if ( fieldToEdit === CONST . EDIT_REQUEST_FIELD . REPORT ) {
4022- const isUnreported = transaction ?. reportID === CONST . REPORT . UNREPORTED_REPORT_ID ;
4022+ // Unreported transaction from OldDot can have the reportID as an empty string
4023+ const isUnreported = ! transaction ?. reportID || transaction ?. reportID === CONST . REPORT . UNREPORTED_REPORT_ID ;
40234024 return isUnreported
40244025 ? Object . values ( allPolicies ?? { } ) . flatMap ( ( currentPolicy ) => getOutstandingReportsForUser ( currentPolicy ?. id , currentUserAccountID , allReports ?? { } ) ) . length > 0
40254026 : getOutstandingReportsForUser ( moneyRequestReport ?. policyID , moneyRequestReport ?. ownerAccountID , allReports ?? { } ) . length > 1 ;
You can’t perform that action at this time.
0 commit comments