Skip to content

Commit

Permalink
Merge pull request #29863 from tienifr/fix/29850
Browse files Browse the repository at this point in the history
fix: 29850 IOU-Tapping on distance receipt, the receipt thumbnail is missing in the receipt page
(cherry picked from commit 6bab0ce)
  • Loading branch information
MariaHCD authored and OSBotify committed Oct 18, 2023
1 parent f8c52f9 commit 6d06d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DistanceEReceipt.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const defaultProps = {
function DistanceEReceipt({transaction}) {
const {translate} = useLocalize();
const {isOffline} = useNetwork();
const {thumbnail} = TransactionUtils.hasReceipt(transaction) ? ReceiptUtils.getThumbnailAndImageURIs(transaction.receipt.source, transaction.filename) : {};
const {thumbnail} = TransactionUtils.hasReceipt(transaction) ? ReceiptUtils.getThumbnailAndImageURIs(transaction) : {};
const {amount: transactionAmount, currency: transactionCurrency, merchant: transactionMerchant, created: transactionDate} = ReportUtils.getTransactionDetails(transaction);
const formattedTransactionAmount = transactionAmount ? CurrencyUtils.convertToDisplayString(transactionAmount, transactionCurrency) : translate('common.tbd');
const thumbnailSource = tryResolveUrlFromApiRoot(thumbnail || '');
Expand Down

0 comments on commit 6d06d56

Please sign in to comment.