@@ -326,7 +326,7 @@ function MoneyRequestView({
326
326
description = { translate ( 'common.distance' ) }
327
327
title = { getPendingFieldAction ( 'waypoints' ) ? translate ( 'iou.fieldPending' ) : distanceToDisplay }
328
328
interactive = { canEditDistance && ! readonly }
329
- shouldShowRightIcon = { canEditDistance }
329
+ shouldShowRightIcon = { canEditDistance && ! readonly }
330
330
titleStyle = { styles . flex1 }
331
331
onPress = { ( ) =>
332
332
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_DISTANCE . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ) )
@@ -353,7 +353,7 @@ function MoneyRequestView({
353
353
description = { translate ( 'common.distance' ) }
354
354
title = { transactionMerchant }
355
355
interactive = { canEditDistance && ! readonly }
356
- shouldShowRightIcon = { canEditDistance }
356
+ shouldShowRightIcon = { canEditDistance && ! readonly }
357
357
titleStyle = { styles . flex1 }
358
358
onPress = { ( ) => Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_DISTANCE . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ) ) }
359
359
/>
@@ -402,7 +402,7 @@ function MoneyRequestView({
402
402
description = { name ?? translate ( 'common.tag' ) }
403
403
title = { TransactionUtils . getTagForDisplay ( updatedTransaction ?? transaction , index ) }
404
404
interactive = { canEdit && ! readonly }
405
- shouldShowRightIcon = { canEdit }
405
+ shouldShowRightIcon = { canEdit && ! readonly }
406
406
titleStyle = { styles . flex1 }
407
407
onPress = { ( ) =>
408
408
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_TAG . getRoute ( CONST . IOU . ACTION . EDIT , iouType , orderWeight , transaction ?. transactionID ?? '' , report ?. reportID ?? '-1' ) )
@@ -497,7 +497,7 @@ function MoneyRequestView({
497
497
description = { amountDescription }
498
498
titleStyle = { styles . textHeadlineH2 }
499
499
interactive = { canEditAmount && ! readonly }
500
- shouldShowRightIcon = { canEditAmount }
500
+ shouldShowRightIcon = { canEditAmount && ! readonly }
501
501
onPress = { ( ) =>
502
502
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_AMOUNT . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ) )
503
503
}
@@ -511,7 +511,7 @@ function MoneyRequestView({
511
511
shouldParseTitle
512
512
title = { updatedTransactionDescription ?? transactionDescription }
513
513
interactive = { canEdit && ! readonly }
514
- shouldShowRightIcon = { canEdit }
514
+ shouldShowRightIcon = { canEdit && ! readonly }
515
515
titleStyle = { styles . flex1 }
516
516
onPress = { ( ) =>
517
517
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_DESCRIPTION . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ) )
@@ -530,7 +530,7 @@ function MoneyRequestView({
530
530
description = { translate ( 'common.merchant' ) }
531
531
title = { updatedTransaction ?. modifiedMerchant ?? merchantTitle }
532
532
interactive = { canEditMerchant && ! readonly }
533
- shouldShowRightIcon = { canEditMerchant }
533
+ shouldShowRightIcon = { canEditMerchant && ! readonly }
534
534
titleStyle = { styles . flex1 }
535
535
onPress = { ( ) =>
536
536
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_MERCHANT . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ) )
@@ -547,7 +547,7 @@ function MoneyRequestView({
547
547
description = { translate ( 'common.date' ) }
548
548
title = { transactionDate }
549
549
interactive = { canEditDate && ! readonly }
550
- shouldShowRightIcon = { canEditDate }
550
+ shouldShowRightIcon = { canEditDate && ! readonly }
551
551
titleStyle = { styles . flex1 }
552
552
onPress = { ( ) =>
553
553
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_DATE . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ?? '-1' ) )
@@ -562,7 +562,7 @@ function MoneyRequestView({
562
562
description = { translate ( 'common.category' ) }
563
563
title = { updatedTransaction ?. category ?? transactionCategory }
564
564
interactive = { canEdit && ! readonly }
565
- shouldShowRightIcon = { canEdit }
565
+ shouldShowRightIcon = { canEdit && ! readonly }
566
566
titleStyle = { styles . flex1 }
567
567
onPress = { ( ) =>
568
568
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_CATEGORY . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ) )
@@ -589,7 +589,7 @@ function MoneyRequestView({
589
589
title = { taxRateTitle ?? '' }
590
590
description = { taxRatesDescription }
591
591
interactive = { canEditTaxFields && ! readonly }
592
- shouldShowRightIcon = { canEditTaxFields }
592
+ shouldShowRightIcon = { canEditTaxFields && ! readonly }
593
593
titleStyle = { styles . flex1 }
594
594
onPress = { ( ) =>
595
595
Navigation . navigate ( ROUTES . MONEY_REQUEST_STEP_TAX_RATE . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction ?. transactionID ?? '-1' , report ?. reportID ?? '-1' ) )
@@ -605,7 +605,7 @@ function MoneyRequestView({
605
605
title = { formattedTaxAmount ? formattedTaxAmount . toString ( ) : '' }
606
606
description = { translate ( 'iou.taxAmount' ) }
607
607
interactive = { canEditTaxFields && ! readonly }
608
- shouldShowRightIcon = { canEditTaxFields }
608
+ shouldShowRightIcon = { canEditTaxFields && ! readonly }
609
609
titleStyle = { styles . flex1 }
610
610
onPress = { ( ) =>
611
611
Navigation . navigate (
0 commit comments