Skip to content

Commit

Permalink
Merge pull request Expensify#31302 from tienifr/fix/30687
Browse files Browse the repository at this point in the history
Fix: Empty transaction data on log in
  • Loading branch information
puneetlath authored Nov 30, 2023
2 parents 71cf44f + 9a1a91f commit 9d0de25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1866,7 +1866,8 @@ function getTransactionReportName(reportAction: OnyxEntry<ReportAction>): string

const transaction = TransactionUtils.getLinkedTransaction(reportAction);
if (!isNotEmptyObject(transaction)) {
return '';
// Transaction data might be empty on app's first load, if so we fallback to Request
return Localize.translateLocal('iou.request');
}
if (TransactionUtils.hasReceipt(transaction) && TransactionUtils.isReceiptBeingScanned(transaction)) {
return Localize.translateLocal('iou.receiptScanning');
Expand Down

0 comments on commit 9d0de25

Please sign in to comment.