File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/components/ReportActionItem Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ function MoneyRequestView({
110
110
const formattedOriginalAmount = transactionOriginalAmount && transactionOriginalCurrency && CurrencyUtils . convertToDisplayString ( transactionOriginalAmount , transactionOriginalCurrency ) ;
111
111
const isCardTransaction = TransactionUtils . isCardTransaction ( transaction ) ;
112
112
const cardProgramName = isCardTransaction && transactionCardID !== undefined ? CardUtils . getCardDescription ( transactionCardID ) : '' ;
113
+ const isApproved = ReportUtils . isReportApproved ( moneyRequestReport ) ;
113
114
114
115
// Flags for allowing or disallowing editing a money request
115
116
const isSettled = ReportUtils . isSettled ( moneyRequestReport ?. reportID ) ;
@@ -173,7 +174,7 @@ function MoneyRequestView({
173
174
if ( ! isDistanceRequest ) {
174
175
amountDescription += ` • ${ translate ( 'iou.cash' ) } ` ;
175
176
}
176
- if ( ReportUtils . isReportApproved ( report ) ) {
177
+ if ( isApproved ) {
177
178
amountDescription += ` • ${ translate ( 'iou.approved' ) } ` ;
178
179
} else if ( isCancelled ) {
179
180
amountDescription += ` • ${ translate ( 'iou.canceled' ) } ` ;
You can’t perform that action at this time.
0 commit comments