File tree 1 file changed +3
-2
lines changed
src/components/ReportActionItem/MoneyRequestPreview
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ function MoneyRequestPreviewContent({
106
106
const isFullySettled = isSettled && ! isSettlementOrApprovalPartial ;
107
107
const isFullyApproved = ReportUtils . isReportApproved ( iouReport ) && ! isSettlementOrApprovalPartial ;
108
108
const shouldShowRBR = hasNoticeTypeViolations || hasViolations || hasFieldErrors || ( ! isFullySettled && ! isFullyApproved && isOnHold ) ;
109
+ const showCashOrCard = isCardTransaction ? translate ( 'iou.card' ) : translate ( 'iou.cash' ) ;
109
110
const shouldShowHoldMessage = ! ( isSettled && ! isSettlementOrApprovalPartial ) && isOnHold ;
110
111
111
112
/*
@@ -140,7 +141,7 @@ function MoneyRequestPreviewContent({
140
141
} ;
141
142
142
143
const getPreviewHeaderText = ( ) : string => {
143
- let message = translate ( 'iou.cash' ) ;
144
+ let message = showCashOrCard ;
144
145
145
146
if ( isDistanceRequest ) {
146
147
message = translate ( 'common.distance' ) ;
@@ -363,7 +364,7 @@ function MoneyRequestPreviewContent({
363
364
onPressOut = { ( ) => ControlSelection . unblock ( ) }
364
365
onLongPress = { showContextMenu }
365
366
shouldUseHapticsOnLongPress
366
- accessibilityLabel = { isBillSplit ? translate ( 'iou.split' ) : translate ( 'iou.cash' ) }
367
+ accessibilityLabel = { isBillSplit ? translate ( 'iou.split' ) : showCashOrCard }
367
368
accessibilityHint = { CurrencyUtils . convertToDisplayString ( requestAmount , requestCurrency ) }
368
369
style = { [
369
370
styles . moneyRequestPreviewBox ,
You can’t perform that action at this time.
0 commit comments