@@ -133,7 +133,7 @@ type MoneyRequestConfirmationListProps = MoneyRequestConfirmationListOnyxProps &
133
133
selectedParticipants : Participant [ ] ;
134
134
135
135
/** Payee of the expense with login */
136
- payeePersonalDetails ?: OnyxEntry < OnyxTypes . PersonalDetails > ;
136
+ payeePersonalDetails ?: OnyxEntry < OnyxTypes . PersonalDetails > | null ;
137
137
138
138
/** Should the list be read only, and not editable? */
139
139
isReadOnly ?: boolean ;
@@ -184,7 +184,7 @@ type MoneyRequestConfirmationListProps = MoneyRequestConfirmationListOnyxProps &
184
184
type MoneyRequestConfirmationListItem = Participant | ReportUtils . OptionData ;
185
185
186
186
function MoneyRequestConfirmationList ( {
187
- transaction = null ,
187
+ transaction,
188
188
onSendMoney,
189
189
onConfirm,
190
190
iouType = CONST . IOU . TYPE . SUBMIT ,
@@ -709,7 +709,7 @@ function MoneyRequestConfirmationList({
709
709
if ( selectedParticipants . length === 0 ) {
710
710
return ;
711
711
}
712
- if ( ! isEditingSplitBill && isMerchantRequired && ( isMerchantEmpty || ( shouldDisplayFieldError && TransactionUtils . isMerchantMissing ( transaction ?? null ) ) ) ) {
712
+ if ( ! isEditingSplitBill && isMerchantRequired && ( isMerchantEmpty || ( shouldDisplayFieldError && TransactionUtils . isMerchantMissing ( transaction ) ) ) ) {
713
713
setFormError ( 'iou.error.invalidMerchant' ) ;
714
714
return ;
715
715
}
@@ -739,7 +739,7 @@ function MoneyRequestConfirmationList({
739
739
return ;
740
740
}
741
741
742
- if ( isEditingSplitBill && TransactionUtils . areRequiredFieldsEmpty ( transaction ?? null ) ) {
742
+ if ( isEditingSplitBill && TransactionUtils . areRequiredFieldsEmpty ( transaction ) ) {
743
743
setDidConfirmSplit ( true ) ;
744
744
setFormError ( 'iou.error.genericSmartscanFailureMessage' ) ;
745
745
return ;
@@ -861,8 +861,8 @@ function MoneyRequestConfirmationList({
861
861
style = { [ styles . moneyRequestMenuItem , styles . mt2 ] }
862
862
titleStyle = { styles . moneyRequestConfirmationAmount }
863
863
disabled = { didConfirm }
864
- brickRoadIndicator = { shouldDisplayFieldError && TransactionUtils . isAmountMissing ( transaction ?? null ) ? CONST . BRICK_ROAD_INDICATOR_STATUS . ERROR : undefined }
865
- errorText = { shouldDisplayFieldError && TransactionUtils . isAmountMissing ( transaction ?? null ) ? translate ( 'common.error.enterAmount' ) : '' }
864
+ brickRoadIndicator = { shouldDisplayFieldError && TransactionUtils . isAmountMissing ( transaction ) ? CONST . BRICK_ROAD_INDICATOR_STATUS . ERROR : undefined }
865
+ errorText = { shouldDisplayFieldError && TransactionUtils . isAmountMissing ( transaction ) ? translate ( 'common.error.enterAmount' ) : '' }
866
866
/>
867
867
) ,
868
868
shouldShow : shouldShowSmartScanFields ,
@@ -1096,7 +1096,7 @@ function MoneyRequestConfirmationList({
1096
1096
isThumbnail,
1097
1097
fileExtension,
1098
1098
isLocalFile,
1099
- } = receiptPath && receiptFilename ? ReceiptUtils . getThumbnailAndImageURIs ( transaction ?? null , receiptPath , receiptFilename ) : ( { } as ReceiptUtils . ThumbnailAndImageURI ) ;
1099
+ } = receiptPath && receiptFilename ? ReceiptUtils . getThumbnailAndImageURIs ( transaction , receiptPath , receiptFilename ) : ( { } as ReceiptUtils . ThumbnailAndImageURI ) ;
1100
1100
1101
1101
const resolvedThumbnail = isLocalFile ? receiptThumbnail : tryResolveUrlFromApiRoot ( receiptThumbnail ?? '' ) ;
1102
1102
const resolvedReceiptImage = isLocalFile ? receiptImage : tryResolveUrlFromApiRoot ( receiptImage ?? '' ) ;
0 commit comments